SQL2005如何新建列?

来源:百度知道 编辑:UC知道 时间:2024/06/06 04:48:18
已有表的,指教下

use '数据库名'
go
if exists(select * from sysobjects where name='你所要建的表名')
drop table '你所要建的表名'
go
create table '你所要建的表名'
(
重新建表语句......
)

SQL 2005 好像不能使用T-SQL直接向已有的表中插入列

要不你就不用T-SQL直接在左面的菜单中,右击表名,然后 修改