1.删除数据库
格式如下:
DROP DATABASE { database_name|database_snapshot_name}[,...n]
删除Publish数据库
DROP DATABASE Publish
GO
3.删除表
格式如下:
DROP [TABLE] [database_name.[schema_name].|schema_name.] table_name[,...n][;]
删除Book表
DROP TABLE Book
GO
3.删除数据
格式如下:
DELETE [FROM] table_name [WHERE <search_condition>]
删除BookID = 1的数据
DELETE FROM Book
WHERE
BookID = '1'
GO
删除Student表所有数据
DELETE Student
GO