mysql 4.1如何delete一行记录
如题!
table-> person
field-> id name password
------解决方案--------------------DELETE FROM person WHERE id = XXX;
如果id是你删除的条件,或者主键的话
------解决方案--------------------DELETE FROM <table_name>
WHERE <条件>
------解决方案--------------------你先用select * FROM person WHERE id = XXX;看看有几条记录,如果是多条,说明你的id有多条记录。应该是id有重复值。删除语句,应该是DELETE FROM <table_name> WHERE <条件>