删除主键为myschar的mysql中的行

时间:2016-04-12 17:04:49

标签: mysql database sql-delete

我正在尝试从表演示中删除行,其中主键是playername和country.Both中的行的类型为varchar,长度为32。其他列是category(varchar 32 length)和price(int)。我已经尝试了以下所有查询来删除行但在每种情况下都无法删除。任何人都可以告诉我这样做的正确方法。谢谢你提前。 尝试过的查询:

DELETE FROM demo WHERE Pname like 'shakib' and country like 'bangladesh'
DELETE FROM demo WHERE `Pname` like 'shakib' and `country` like 'bangladesh'
DELETE FROM `demo` WHERE `Pname` like 'shakib' and `country` like 'bangladesh'
DELETE FROM `demo` WHERE `Pname`='shakib' and `country`='bangladesh'
DELETE FROM `demo` WHERE `Pname`="shakib" and `country`="bangladesh"

0 个答案:

没有答案