BMS-HOSxP Community
HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: โรงพยาบาลอัมพวา ที่ ธันวาคม 29, 2010, 09:05:56 AM
-
ผมต้องอัพเดทตารางข้ิอมูล patient fied ocupation ช่องค่าว่าง อ่ะครับ ใช้ syntax ยัง ไง ครับ ขอบคุณครับ
-
ใช่ แบบนี้ป่ะครับ
update educate from patient where educate is not null and
educate ='900'
ใช่ป่ะครับ
-
ใช่ แบบนี้ป่ะครับ
update educate from patient where educate is not null and
educate ='900'
ใช่ป่ะครับ
ต้องเป็น
update TABLE set FIELD=XXX where XXX is null ครับ
เพราะฉะนั้นต้องเขียนว่า update patient set educate=900 where (educate is null or educate like '')
-
กลับมาอ่านอีกครั้งงงว่าจะแก้ไข occupation แต่ใช้คำสั่งหาค่าว่างใน educate
ถ้าต้องการแก้ occupation ต้องแก้เป็น
update patient set occupation=900 where (occupation is null or occupation like '')
-
กลับมาอ่านอีกครั้งงงว่าจะแก้ไข occupation แต่ใช้คำสั่งหาค่าว่างใน educate
ถ้าต้องการแก้ occupation ต้องแก้เป็น
update patient set occupation=900 where (occupation is null or occupation like '')
;D ;D ;D แต่เช้าเลยนะครับพี่ pop ;D ;D ;D
-
ได้แล้วครับ ขอบคุณมากครับ ท่าน pop
-
แล้วถ้าต้องการ updat กระเป๋าตัง ละครับต้องเขียนยังไง ท่าน pop แบบว่าคนที่บ้านไม่ดูเลย :D :D