mysql执行sql语句时报错!!应该怎么解决?
我的sql语句是:UPDATEpersonalSETuser_name='孙浩6',family_id='00000203',generation='2',ranking...
我的sql语句是:UPDATE personal SET user_name ='孙浩6',family_id = '00000203',generation = '2',ranking = '26',PASSWORD = '' permission = '9' WHERE id = '11' LIMIT 1
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 'permission = '9' where id = '11' limit 1' at line 1 展开
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 'permission = '9' where id = '11' limit 1' at line 1 展开
展开全部
PASSWORD = '' permission = '9'这里错了,他俩之间缺个“,”号
UPDATE personal SET user_name ='孙浩6',family_id = '00000203',generation = '2',ranking = '26',PASSWORD = '',permission = '9' WHERE id = '11' LIMIT 1
这样试试
UPDATE personal SET user_name ='孙浩6',family_id = '00000203',generation = '2',ranking = '26',PASSWORD = '',permission = '9' WHERE id = '11' LIMIT 1
这样试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
PASSWORD = '' permission = '9'
中间的逗号哪去了,是不是
PASSWORD = '' ,permission = '9'
中间的逗号哪去了,是不是
PASSWORD = '' ,permission = '9'
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
少了个逗号
UPDATE personal SET user_name ='孙浩6',family_id = '00000203',generation = '2',ranking = '26',PASSWORD = '', permission = '9' WHERE id = '11' LIMIT 1
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
SQL 更新语句有问题 不应该使用limit 你这是更新不是查询 估计是这样
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
查看字段类型是否匹配。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询