Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mysql] nie chce wykonac akcji
podkarpacki
post
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 19.02.2011

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


witam

mam problem

wklepuje w phpmyadminie:
  1. CREATE TABLE galery_b (
  2. id int(32) NOT NULL AUTO_INCREMENT,
  3. cat varchar(32) NOT NULL,
  4. title varchar(64) NOT NULL,
  5. date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
  6. name varchar(16) DEFAULT '0' NOT NULL,
  7. size varchar(32) NOT NULL,
  8. width int(4) NOT NULL ,
  9. height int(4) NOT NULL ,
  10. widthm int(4) NOT NULL ,
  11. heightm int(4) NOT NULL ;
  12. PRIMARY KEY (id)
  13. );


niestety wyrzuca błąd:
MySQL zwrócił komunikat: Dokumentacja
#1064 - Something is wrong in your syntax obok '' w linii 11


phpMyAdmin 3.3.7
co jest nie tak, jestem zielony - przyznaję się bez bicia (IMG:style_emoticons/default/wink.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
kaminskp
post
Post #2





Grupa: Zarejestrowani
Postów: 98
Pomógł: 0
Dołączył: 18.03.2008
Skąd: Olsztyn

Ostrzeżenie: (20%)
X----


Moim zdaniem jest problem z ; znak ten kończy polecenie SQL.

Spróbuj tak:

CREATE TABLE galery_b (
id int(32) NOT NULL AUTO_INCREMENT,
cat varchar(32) NOT NULL,
title varchar(64) NOT NULL,
date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
name varchar(16) DEFAULT '0' NOT NULL,
size varchar(32) NOT NULL,
width int(4) NOT NULL ,
height int(4) NOT NULL ,
widthm int(4) NOT NULL ,
heightm int(4) NOT NULL,
PRIMARY KEY (id)
);

Ten post edytował kaminskp 19.02.2011, 19:18:07
Go to the top of the page
+Quote Post
podkarpacki
post
Post #3





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 19.02.2011

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


dzięki, zadziałało. (IMG:style_emoticons/default/wink.gif)
Go to the top of the page
+Quote Post

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: 24.12.2025 - 13:12