请教数据库专家个初级问题,这个用t-sql怎么写?

来源: 2009-04-27 10:38:01 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

if I create a table as below:

CREATE TABLE table1(
column1 varchar(50),
column2 varchar(50),
column3 varchar(50),
column4 varchar(50));

what is the code for adding the column named “columnX” after column2 to the table shown above?


ALTER TABLE table1 ADD columnX varchar(50)
可以add a new column,但怎么加到指定位置呢(after column2)?