Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> error przy tworzeniu tabeli
fuqs
post
Post #1





Grupa: Zarejestrowani
Postów: 56
Pomógł: 0
Dołączył: 13.08.2007

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


Cytat
CREATE TABLE `szorty` (
`id` int(11) NOT NULL auto_increment,
`short` varchar(6) NOT NULL,
`url` varchar(1000) NOT NULL,
`st` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `short` (`short`)
) ENGINE=MyISAM DEFAULT;




Panowie, wywala mi blad ;/ co jest nie tak ?



#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ayeo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 202
Pomógł: 117
Dołączył: 13.04.2007
Skąd: 127.0.0.1

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


  1. CREATE TABLE `szorty` (
  2. `id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  3. `short` VARCHAR(6) NOT NULL,
  4. `url` TEXT NOT NULL,
  5. `st` DATETIME NOT NULL,
  6. KEY (`short`)
  7. )
  8. ENGINE = myisam;


Może tak?
Go to the top of the page
+Quote Post

Posty w temacie
- fuqs   error przy tworzeniu tabeli   18.07.2009, 17:08:18
- - ayeo   [SQL] pobierz, plaintext CREATE TABLE `szorty` ...   18.07.2009, 17:15:55
- - fuqs   dzieki wielkie, dziala   18.07.2009, 17:21:34
- - phpion   Cytat(fuqs @ 18.07.2009, 18:08:18 ) #...   18.07.2009, 17:35:10


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

 



RSS Aktualny czas: 9.10.2025 - 23:23