BMS-HOSxP Community

HOSxP => แจ้งปัญหา / ขอความช่วยเหลือ => ข้อความที่เริ่มโดย: Svl2Nuk3 ที่ เมษายน 22, 2010, 16:26:26 PM

หัวข้อ: Replicate ใครเคยเจอแบบนี้บ้างครับ
เริ่มหัวข้อโดย: Svl2Nuk3 ที่ เมษายน 22, 2010, 16:26:26 PM
19/04/2553 14:22:12 192.168.0.251/hos  #42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{285EA639-A8F2-465D-A693-E5E8BDF8A868}'' and (finance_number = '' or finance_num' at line 1 CLI>XRAY_1 SQL>delete from opitemrece where hos_guid = ''{285EA639-A8F2-465D-A693-E5E8BDF8A868}'' and (finance_number = '' or finance_number is null)

Error
check the manual that corresponds to your MySQL server version for the right syntax to use near '{285EA639-A8F2-465D-A693-E5E8BDF8A868}'' and (finance_number = '' or finance_num' at line 1

SQL ทั้งหมด
delete from opitemrece where hos_guid = '' {285EA639-A8F2-465D-A693-E5E8BDF8A868}'' and (finance_number = '' or finance_number is null)

ดูผ่าน ๆ  ก็คิดว่า  SQL  น่าจะถูกแล้วนะครับ  แต่ก็ยังงว่าทำไมมันถึง  Error
ก็เลย copy ไป run  ดู   แล้วก็พบว่า

delete from opitemrece where hos_guid = '' {285EA639-A8F2-465D-A693-E5E8BDF8A868}'' and (finance_number = '' or finance_number is null)

ตัวสีแดงเป็นเครื่องหมาย  Single Quote 2  อันติดกันครับ

แบบนี้ที่อื่นเป็นกันบ้างหรือเปล่าครับ
หัวข้อ: Re: Replicate ใครเคยเจอแบบนี้บ้างครับ
เริ่มหัวข้อโดย: thecoy ที่ เมษายน 22, 2010, 20:12:51 PM
ของผมก็เป็นครับ
หัวข้อ: Re: Replicate ใครเคยเจอแบบนี้บ้างครับ
เริ่มหัวข้อโดย: Svl2Nuk3 ที่ เมษายน 23, 2010, 07:20:43 AM
เข้ามาดันแต่เช้า   ;D
หัวข้อ: Re: Replicate ใครเคยเจอแบบนี้บ้างครับ
เริ่มหัวข้อโดย: Svl2Nuk3 ที่ เมษายน 23, 2010, 12:07:30 PM
ดันอีกที
หัวข้อ: Re: Replicate ใครเคยเจอแบบนี้บ้างครับ
เริ่มหัวข้อโดย: เข้ม ที่ เมษายน 23, 2010, 14:49:18 PM
ผมก็เป็นครับ


แถมอีก ...

20/04/2553 09:29:34 XXX.XXX.XXX.XXX/hos  #42S22Unknown column 'medplan_number' in 'where clause' CLI>PHARM-IPD1 SQL>delete from medreturn_ipd where an='530006871' and medplan_number=0 and  return_date = '2010-04-18'
.
.
.
20/04/2553 10:54:55 XXX.XXX.XXX.XXX/hos  #42S22Unknown column 'medplan_number' in 'where clause' CLI>PHARM-IPD1 SQL>delete from medreturn_ipd where an='530004515' and medplan_number=0 and  return_date = '2010-04-20'
.
.
.
 :) :)