BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: yord ที่ มีนาคม 09, 2007, 02:56:03 AM

หัวข้อ: สั่ง Add Chart ไม่ได้ครับ
เริ่มหัวข้อโดย: yord ที่ มีนาคม 09, 2007, 02:56:03 AM
มี error ครับ เป็นบางรายน่ะครับ แก้ไขอย่างไรครับ
7.1 : Hospital Code = 10748 [โรงพยาบาล ปัตตานี]
        Database Type = MySQL
        Database Protocol = mysql-4.1
        Last 3 SQL Statement
        .
        No 1 = select o.*,concat(s.name,' ',s.strength,' ',s.units) as name ,d.shortlist  from medplan_ipd o  left outer join s_drugitems s on s.icode=o.icode  left outer join drugusage d on d.drugusage=o.drugusage  where o.an='500002455'   and o.orderdate<='2007-03-07'  and (o.offdate>='2007-03-07' or o.offdate = '1899-12-30' or o.offdate IS NULL) order by o.icode_type,o.med_plan_number
        .
        No 2 = select must_paid,high_cost,use_right from drugitems where icode='0'
        .
        No 3 = select icode from nondrugitems where name=''
        .
        Server variable
หัวข้อ: Re: สั่ง Add Chart ไม่ได้ครับ
เริ่มหัวข้อโดย: manoi ที่ มีนาคม 09, 2007, 03:05:55 AM
ส่งข้อมูลของตาราง drugitems , nondrugitems เข้ามาด้วยครับ

(save เป็น cds)
หัวข้อ: Re: สั่ง Add Chart ไม่ได้ครับ
เริ่มหัวข้อโดย: yord ที่ มีนาคม 09, 2007, 03:32:25 AM
นี่ครับ อ.
หัวข้อ: Re: สั่ง Add Chart ไม่ได้ครับ
เริ่มหัวข้อโดย: manoi ที่ มีนาคม 09, 2007, 04:24:10 AM
ใช้คำสั่งนี้ครับ

โค๊ด: SQL
  1. DELETE FROM drugitems WHERE TRIM(name)=''
  2.  

โค๊ด: SQL
  1. DELETE FROM nondrugitems WHERE TRIM(name)=''
  2.