HOME > PHP > PHP Forum > ดูโค๊ด insert ให้หน่อยค่ะมัน error จนปัญญาแก้แล้วค่ะ... #1064 - You have an error in your SQL syntax; version for the right syntax to use near 'order
ดูโค๊ด insert ให้หน่อยค่ะมัน error จนปัญญาแก้แล้วค่ะ... #1064 - You have an error in your SQL syntax; version for the right syntax to use near 'order
INSERT INTO order (oid,pid,uid,pname,price,quantity,date) VALUES ('','00015','','กุหลาบมากรัก','590','2','2011-06-15')
UPDATE product SET stock = stock-2 WHERE pid = 00015
INSERT INTO order (oid,pid,uid,pname,price,quantity,date) VALUES ('','00019','','พวงรีดไว้ลาย','500','1','2011-06-15')
UPDATE product SET stock = stock-1 WHERE pid = 00019
DELECT FROM cart WHERE sid = 'af2eae906fda257396cbbd8be41d130d'
copy code วางใน mysql
คำค้น SQL:
INSERT INTO ORDER ( oid, pid, uid, pname, price, quantity, date )
VALUES (
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (oid,pid,uid,pname,price,quantity,date) VALUES ('','00015','','à¸