SQLServer 基础操作

1、根据旧表创建新表(只有表结构)
   select * into newTable  from oldTable where 1<>1 
   根据旧表创建新表(表结构+表数据)
   select * into newTable  from oldTable
  
2、增加字段(列)
   alter table tableName add columnName int null
   删除字段(列)
   alter table tableName drop column columnName

posted @ 2011-07-19 11:00  赵良  阅读(117)  评论(0)    收藏  举报