SQL Server 建表语句

IF EXISTS(SELECT * FROM sys.Tables WHERE name='stu_info')
  DROP TABLE stu_info
Go
Create table
stu_info
(stu_id    int  identity(1,1),
name       nvarchar(20)not null,
birthday   date null,
sex        nvarchar(2)null,
addres    nvarchar(20)null,
mark       int null,
major      nvarchar(20)null,
sdept     nvarchar(20)null );

Insert Into stu_info(name,birthday,sex,addres,mark,major,sdept)values('张三','1991-01-01','男','山东',1,'数学','神马');
Insert Into stu_info(name,birthday,sex,addres,mark,major,sdept)values('李四','1991-01-01','男','北京',1,'数学','神马');

上一篇:神经网络hopfield的学习


下一篇:BZOJ_1691_[Usaco2007 Dec]挑剔的美食家_贪心