MySQL错误:1064(您的SQL语法中有错误;请查看与您的MySQL服务器版本对应的手册,以获得正确使用的语法' WHERE gallery_id =' 25&# 39;'在第1行) 会议暂停。
数据库错误:
UPDATE gallery_master SET gallery_title = 'Presss', gallerycat_id = '6', gallery_code = 'Presss', gallery_images = '201411121152551461105875_pressgfx1.jpg' , gallery_status = '1' , gallery_description = '' , gallery_featured = '1' , WHERE gallery_id = '25'
答案 0 :(得分:1)
UPDATE gallery_master
SET gallery_title = 'Presss',
gallerycat_id = '6',
gallery_code = 'Presss',
gallery_images = '201411121152551461105875_pressgfx1.jpg' ,
gallery_status = '1' ,
gallery_description = '' ,
gallery_featured = '1' ,
^============= here
WHERE gallery_id = '25'
答案 1 :(得分:0)
删除where子句前的最后一个逗号:
UPDATE gallery_master SET gallery_title = 'Presss', gallerycat_id = '6', gallery_code = 'Presss', gallery_images = '201411121152551461105875_pressgfx1.jpg' , gallery_status = '1' , gallery_description = '' , gallery_featured = '1' WHERE gallery_id = '25'