USE XSBOOK
DROP TABLE XS
CREATE TABLE XS
( 借书证号 char(8) not null primary key,
姓名 char(8) not null,
专业名 char(12) null,
性别 bit not null default(0),
出生时间 datetime null,
借书数 int null,
照片 image null)
insert into xs
values('59010105','李泽',null,1,null,null,null)
GO
INSERT INTO XS
values('59010129','姚晓轩',null,1,null,null,null)
GO
INSERT INTO XS
values('59010132','李明',null,1,null,null,null)
go
select * from xs
DROP TABLE XS
CREATE TABLE XS
( 借书证号 char(8) not null primary key,
姓名 char(8) not null,
专业名 char(12) null,
性别 bit not null default(0),
出生时间 datetime null,
借书数 int null,
照片 image null)
insert into xs
values('59010105','李泽',null,1,null,null,null)
GO
INSERT INTO XS
values('59010129','姚晓轩',null,1,null,null,null)
GO
INSERT INTO XS
values('59010132','李明',null,1,null,null,null)
go
select * from xs