![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 27 Pomógł: 0 Dołączył: 22.02.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam utworzoną tabele w mysql, i tu mam problem tzn. mam tabele i jak dodaje nową kolumnę do tej tabeli z zapytaniem:
Kod alter table informacje add column faktura_id smallint(4) unsigned auto_increment primary key (faktura_id) after data_ur; to dostaję taki bład: 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 'primary key (faktura_id) after data_ur' at line 1. Jest jedno ale, to znaczy ze juz w tej tabeli mam utworzone id_klienta varchar(30) not null auto_increment primary key (id_klienta);Gdzie robię błąd w zapytaniu jak dodaję nową kolumnę do aktualnej tabeli?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ? I jak dosłownie mozna zrozumiec ten bład: for the right syntax to use near 'primary key (faktura_id) after data_ur' at line 1.(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ? Pozdrawiam |
|
|
![]() ![]() |
![]() |
Aktualny czas: 15.09.2025 - 04:10 |