Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Komunikat błedu MySQL
qwerty2
post 23.09.2006, 12:52:45
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 20.09.2006

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


Witam!

Prosze o pomoc przy wykonaniu zapytania zwraca komunikat

#1064 - Something is wrong in your syntax obok 'collate ucs2_polish_ci NOT NULL default '',
`haslo` varchar(3' w linii 3

CREATE TABLE `konta` (
`ID` int(30) NOT NULL auto_increment,
`login` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`haslo` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`firma` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`www` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`imie` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`nazwisko` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`email` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`tel` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`fax` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`ulica` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`nr_domu` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`kod` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`miasto` varchar(30) collate ucs2_polish_ci NOT NULL default '',
`level` int(1) NOT NULL default '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=107 DEFAULT CHARSET=ucs2 COLLATE=ucs2_polish_ci AUTO_INCREMENT=100 ;
Go to the top of the page
+Quote Post
SongoQ
post 23.09.2006, 13:00:59
Post #2





Grupa: Przyjaciele php.pl
Postów: 2 923
Pomógł: 9
Dołączył: 25.10.2004
Skąd: Rzeszów - studia / Warszawa - praca

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


Jaka wersja bazy?


--------------------
Go to the top of the page
+Quote Post
kossa
post 23.09.2006, 13:53:12
Post #3





Grupa: Zarejestrowani
Postów: 1 165
Pomógł: 9
Dołączył: 9.04.2002
Skąd: Toruń

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


Cytat
ENGINE=MyISAM AUTO_INCREMENT=107 DEFAULT CHARSET=ucs2 COLLATE=ucs2_polish_ci AUTO_INCREMENT=100 ;


na końcu zapytania masz dwa razy auto_increment

pomiń wogóle tą końcówkę i średnik postaw zaraz za nawiasem );

Łukasz


--------------------
Go to the top of the page
+Quote Post

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 Wersja Lo-Fi Aktualny czas: 19.07.2025 - 19:39