我在代码中看不到任何错误:
UPDATE customer_stores
SET long = '153.037285',
lat = '-27.564'
WHERE customer_id = 2638
我要填写的字段是VARCHAR(100)。
答案 0 :(得分:2)
LONG
是一个MySQL reserved keyword.用反引号括起来将它用作列或表标识符:
UPDATE customer_stores SET `long`='153.037285', lat='-27.564' WHERE customer_id=2638