<分区>
我遇到了一个奇怪的问题。我知道我遗漏了一些非常小的东西。任何人都可以解决问题吗? 这是我的 table :
cat_id name desc
1 Cricket Schedule
2 Live Cricket Live Cricket Desc
3 Fixtures
4 Videos
我运行了以下更新查询并且运行良好。
UPDATE cats
set name='New Fixtures'
WHERE cat_id='3'
但是当我运行以下查询时,它返回错误:
#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 'desc='New Fixtures Desc' WHERE cat_id='3'' at line 1
查询是:
UPDATE cats
set desc='New Fixtures Desc'
WHERE cat_id='3'
请告诉我我在这里缺少什么