当前位置:Gxlcms > 数据库问题 > SqlSever基础 给一个数据库中的一个表中的一个指定的列赋值

SqlSever基础 给一个数据库中的一个表中的一个指定的列赋值

时间:2021-07-01 10:21:17 帮助过:29人阅读

create database helloworld2 2 3 use helloworld2 4 5 create table Teacher2 6 ( 7 ShengHao nvarchar(20) not null, 8 Id nvarchar(10) default(0) --你不给我赋值的话,我就默认为0,可以为空哦 9 ) 10 11 --插入 12 insert Teacher2(ShengHao) 13 values(元始天尊) 14 --查看 15 select * from Teacher2

 

 

 

2 show

技术分享

 

SqlSever基础 给一个数据库中的一个表中的一个指定的列赋值

标签:个数   class   font   ges   sql   arch   code   赋值   hello   

人气教程排行