otóż mam sobie taką tabelkę:
CREATE TABLE countries( idCountry SMALLINT(3) UNSIGNED NOT NULL AUTO_INCREMENT, countryName CHAR(100) NOT NULL, countryAlias CHAR(100) NOT NULL, countryCode CHAR(2) NOT NULL, gMapStatus SMALLINT(2) UNSIGNED NOT NULL DEFAULT 0, gMapLatitude FLOAT(9,6) NOT NULL DEFAULT 0, gMapLongitude FLOAT(9,6) NOT NULL DEFAULT 0, PRIMARY KEY(idCountry) ) ENGINE=InnoDB DEFAULT CHARSET=latin2;
gdy chcę włożyć do niej dane typu:
INSERT INTO countries(countryName, countryAlias, countryCode, gMapStatus, gMapLatitude, gMapLongitude) VALUES('Polska', 'polska' 'pl', '2', '51.919438', '19.145136');
to wywala mi błąd:
Cytat
#1136 - Column count doesn't match value count at row 1
pytanie czemu ?
Przecież dane wkdane odpowiadaj ilości kolumn...