使用SQL语句创建客户订货管理数据库Goods 主数据文件名为Goods_Data 物理文件名为D:khdh Goods_D
已帮助 人
使用SQL语句创建客户订货管理数据库Goods,主数据文件名为Goods_Data,物理文件名为D:khdh Goods_Data.Mdf,初始大小为10MB,最大容量为200MB,增长速度为5MB;事务日志文件名为Goods_Log,物理文件名为D: khdh Goods_Log.ldf,初始大小为5MB,最大容量为50MB,增长速度为10%。

回答
共1条回复-
use master go -- 批处理命令 if exists (select * from sys.databases where name='goods') -- 如果已经有了订货管理数据库goods drop databases goods -- 删除数据库 go create databases goods -- 创建临时数据库 go use goods go create table good ( Goodno char(4) not null , Goodname varchar(10) not null, Price smallint not null ) go
