xentis
21.08.2007, 10:34:04
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 :]
nospor
21.08.2007, 10:38:44
manuala zamkneli?
http://dev.mysql.com/doc/refman/5.0/en/alter-table.htmlCytat
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.