Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z AUTO_INCREMENT, MYSQL
kuba_pilach
post
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
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
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
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 5.10.2025 - 23:52