为什么 mysql 中的简单更新查询一直给出错误代码 1064?
why does simple update query in mysql keeps giving error code 1064?
这是查询:
update table tblprobleem set omschrijving='bugfixes' where probleem_id=4;
我检查了omschrijving
,它的数据类型是varchar
。 probleem_id
是整数。我试过重写它一千次,我就是不明白这有什么问题。
错误信息:
12:03:05 update table tblprobleem set omschrijving='bugfixes' where
probleem_id=4
Error Code: 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 'table tblprobleem set omschrijving='bugfixes'
where probleem_id=4' at line 1 0.000 sec
如果有人知道答案,我将永远感谢您。
您好,
约翰
删除查询中的 table 使其变成这样
update tblprobleem set omschrijving='bugfixes' where probleem_id=4
这是查询:
update table tblprobleem set omschrijving='bugfixes' where probleem_id=4;
我检查了omschrijving
,它的数据类型是varchar
。 probleem_id
是整数。我试过重写它一千次,我就是不明白这有什么问题。
错误信息:
12:03:05 update table tblprobleem set omschrijving='bugfixes' where probleem_id=4
Error Code: 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 'table tblprobleem set omschrijving='bugfixes' where probleem_id=4' at line 1 0.000 sec
如果有人知道答案,我将永远感谢您。
您好, 约翰
删除查询中的 table 使其变成这样
update tblprobleem set omschrijving='bugfixes' where probleem_id=4