i have to convert a bad code to a better solution for calculating counts from our site.
i have a table that counts the number of times
the current table:
CREATE TABLE `hits_2011_12_5` (
`count` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
now i want to slowly migrate the new code to the old one but i have this error with the new code:
ana@localhost:test> insert into hits_2011_12_5 values (1,2,3,4,5);
ERROR 1136 (21S01): Column count doesn't match value count at row 1
what can be the issue?
use this:
The query you tried requires 5 columns, not inserting 5 lines.