Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z AUTO_INCREMENT, MYSQL
kuba_pilach
post 6.01.2011, 18:37:04
Post #1





Grupa: Zarejestrowani
Postów: 224
Pomógł: 3
Dołączył: 24.12.2010

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


Witam, mam problem z ustawieniem w phpmyadmin opcji "AUTO_INCREMENT"...

  1. Błąd
  2. Zapytanie SQL:
  3.  
  4. ALTER TABLE `Przedmiot` CHANGE `ID` `ID` INT( 10 ) NOT NULL AUTO_INCREMENT
  5.  
  6. MySQL zwrócił komunikat:
  7.  
  8. #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key


Gdzie ID ma mieć tą opcję... Wie ktoś, o co chodzi?
Dzięki z góry
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
gigzorr
post 6.01.2011, 19:04:49
Post #2





Grupa: Zarejestrowani
Postów: 652
Pomógł: 47
Dołączył: 6.02.2010
Skąd: Radom

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


http://forum.php.pl/lofiversion/index.php/t59734.html

http://www.spiration.co.uk/post/1296/MySQL...%20as%20a%20key

Ten post edytował gigzorr 6.01.2011, 19:05:16
Go to the top of the page
+Quote Post
kuba_pilach
post 9.01.2011, 12:31:57
Post #3





Grupa: Zarejestrowani
Postów: 224
Pomógł: 3
Dołączył: 24.12.2010

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


Dzięki wielkie, pomogłeś mi bardzo...
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: 26.06.2025 - 10:08