Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z wkładaniem danych do tabeli, #1136 - Column count doesn't match value count at row 1
MitS
post
Post #1





Grupa: Zarejestrowani
Postów: 262
Pomógł: 5
Dołączył: 8.02.2005
Skąd: Olsztyn / Zatorze

Ostrzeżenie: (0%)
-----


Witam,

otóż mam sobie taką tabelkę:
  1. CREATE TABLE countries(
  2. idCountry SMALLINT(3) UNSIGNED NOT NULL AUTO_INCREMENT,
  3. countryName CHAR(100) NOT NULL,
  4. countryAlias CHAR(100) NOT NULL,
  5. countryCode CHAR(2) NOT NULL,
  6. gMapStatus SMALLINT(2) UNSIGNED NOT NULL DEFAULT 0,
  7. gMapLatitude FLOAT(9,6) NOT NULL DEFAULT 0,
  8. gMapLongitude FLOAT(9,6) NOT NULL DEFAULT 0,
  9.  
  10. PRIMARY KEY(idCountry)
  11. ) ENGINE=InnoDB DEFAULT CHARSET=latin2;


gdy chcę włożyć do niej dane typu:
  1. INSERT INTO countries(countryName, countryAlias, countryCode, gMapStatus, gMapLatitude, gMapLongitude)
  2. 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...
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 13:59