使用 SQL 语句创建 School 数据库(包括参数)、 TblClass 表、 TblStudent 表。 并向其中填入数据。
创建 School 数据库(包括参数)
create database School
on primary
(
name='School',
filename='F:\SQL Server\School.mdf',
size=10mb,
filegrowth=10,
maxsize=100mb
)
log on
(
name='School_log',
filename='F:\SQL Server\School_log.ldf'
)
TblClass 表:
create table TblClass
(
clsId int identity(1,1) primary key,
clsName nvarchar(50) not null,
clsDiscription nvarchar(50)
)
insert into TblClass (clsName,clsDiscription) values ('高一一班','快班
创建 School 数据库(包括参数)
create database School
on primary
(
name='School',
filename='F:\SQL Server\School.mdf',
size=10mb,
filegrowth=10,
maxsize=100mb
)
log on
(
name='School_log',
filename='F:\SQL Server\School_log.ldf'
)
TblClass 表:
create table TblClass
(
clsId int identity(1,1) primary key,
clsName nvarchar(50) not null,
clsDiscription nvarchar(50)
)
insert into TblClass (clsName,clsDiscription) values ('高一一班','快班