我正在尝试这样做,以便我可以运行一个SQL脚本来删除每个ID大于或等于3000的帐户。
这是我到目前为止所做的:
DELETE column WHERE `id` => 3000
答案 0 :(得分:2)
假设您要删除officeNumber为4的员工,请将带有WHERE子句的DELETE语句用作以下查询:
DELETE FROM employees
WHERE officeCode = 4
答案 1 :(得分:1)
更改此
DELETE column WHERE `id` => 3000
经
DELETE from TableName WHERE id >= 3000
列名不需要在'sql中包含''。并且条件应该是> = = =>