SqlSever基础 在指定的数据库中添加一个表(具有两个列)
                        
                            时间:2021-07-01 10:21:17
                            帮助过:25人阅读
							                        
                     
                    
                    
                     select * 
from sysdatabases
 2 
 3 --
指定添加列的数据库,helloworld
 4 use helloworld
 5 
 6 --
创建表     表的名字
 7 create table TeacherClass
 8 ( 
 9    --
 列名 数据类型 不可为空   做主键      设置标识属性(种子,增长值) 列之间用逗号分开
10     Id  
int      not 
null  primary key  identity(
1,
1)                ,
11     
12  --
 列名      数据类型(有中国字,不确定长度)     
13     ShengHao nvarchar(
20) 
14 )
 
 
 
2 show

 
SqlSever基础 在指定的数据库中添加一个表(具有两个列)
标签:pre   hello   .com   逗号   entity   ase   eve   from   添加