在SQL 2000中查询

时间:2010-04-22 12:05:36

标签: sql-server sql-server-2000

如何删除表中的特定列?

1 个答案:

答案 0 :(得分:4)

CREATE TABLE dbo.MyTable (column_a INT, column_b VARCHAR(20) NULL);
GO
ALTER TABLE dbo.MyTable DROP COLUMN column_b;
GO
EXEC sp_help MyTable;
GO
DROP TABLE dbo.MyTable;
GO