0

I am trying to delete a row from a table but while deleting the entry, MySQL is giving me the following error:

Column count doesn't match value count at row 1.

the query which is i m executing is a simnple delete query:

DELETE from 'tablename' WHERE id=1341
Prateek Bhati
  • 25
  • 1
  • 8

2 Answers2

2

Make sure you don't have any triggers on delete statement. You can see you triggers by SHOW TRIGGERS; AND if you want to drop one of the triggers DROP [name_of_the_trigger];

Iurii
  • 21
  • 3
0
DELETE from tablename WHERE id=1341 

(without quotes) i guess is the correct answer

Mark Roll
  • 506
  • 3
  • 6
  • 15