BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: yord ที่ ธันวาคม 19, 2007, 10:03:27 AM
-
หน้าจอซักประวัติ ที่ CC เมื่อเราพิมพ์ข้อความแล้วจะเพิ่มใน pe_code ไม่ได้ครับ v.3.50.12.4 (ในเครื่องทดสอบ v.3.50.12.16b ก็ยังไม่ได้ครับ)
-
ต้องดู Error message ด้านหลังครับ
-
System Message
SQL Error: Duplicate entry '131' for key 1
select * from pe_code where name='ปวดท้องน้อยด้านขวา' and doctor=''
-
:)
-
System Message
SQL Error: Duplicate entry '131' for key 1
select * from pe_code where name='ปวดท้องน้อยด้านขวา' and doctor=''
doctor=""
-
ของ อ.ใช้ได้หรือเปล่าครับ ต้องทำอย่างไรดีครับ
-
ลองใช้คำสั่ง
update serial set serial_no = (select max(code) from pe_code) where name =pe_code
-
select * from serial where name like "%pe_code%"
เป็นการตรวจสอบว่าเลขมากสุดของมันอะไรครับ
เปลียนเทียบกับตาราง
pe_code ครับ
-
ทำได้แล้วครับ ขอบคุณครับ
update serial set serial_no = (select max(code) from pe_code) where name ='pe_code'