![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 12 Pomógł: 0 Dołączył: 2.06.2007 Ostrzeżenie: (0%) ![]() ![]() |
Hejka,
chciałabym dodać kilka kolumn do istniejacej juz tabeli za jednym razem, probowalam ALTER TABLE nazwatabeli ADD nazwa_kolumny typ, nazwa_kolumny2 typ, nazwa_kolumny3 typ; niestety nie dziala w ten sposob, danie tego w nawias tez nie pomoglo. Bede wdzieczna za pomoc :] |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
manuala zamkneli?
http://dev.mysql.com/doc/refman/5.0/en/alter-table.html Cytat Adding multiple columns in one command:
At first you might be tempted to add multiple columns by doing this: alter table tblname add column col1 varchar(50), col2 tinyint(1), etc, etc... but the correct syntax is: alter table tblname add column col1 varchar(50), add column col2 tinyint(1), etc. etc... you must put "add column" in front of all new columns. -------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 12:27 |