sql创建数据库的脚本下载以及增删改查语句

IT技术2年前 (2022)更新 投稿用户
0

sql创建数据库的脚本下载以及增删改查语句查阅-志在指尖

第一次更新sql,在这里讲一下 使用sql数据库脚本的时候 请先创建一个名为“students”的数据库 然后再执行sql数据库脚本

sql增删改查语句

sql增删改查语句

insert into areaInfo VALUES('5801','大英县')
insert into areaInfo VALUES('5802','船山区')
insert into areaInfo VALUES('5803','船山区')
insert into areaInfo VALUES('5804','船山区')
insert into schoolInfo VALUES('0001','大英一中','5801')
insert into schoolInfo VALUES('0002','大英一中','5802')
insert into schoolInfo VALUES('0003','船山中学','5803')
insert into schoolInfo VALUES('0004','船山中学','5804')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0001','510295','张三','123456','01','男','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0002','510225','张四','123456','02','女','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0002','510595','张五','123456','03','男','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0001','514295','张六','123456','04','男','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0001','510295','张七','123456','05','女','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0002','512295','张八','123456','06','男','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0002','510655','张九','123456','07','女','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0001','516295','张十','123456','08','男','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0001','517295','张十一','123456','09','男','null','null','null','null')
insert into stuInfo(schId,stuIdentity,stuName,stuPwd,ClassId,stuSex,applyNum,examNum,stuId,remark) values('0001','518895','张十二','123456','10','男','null','null','null','null')
update areaInfo set areaName='大英' where areaName='大英县'
update schoolInfo set schName='大英二中' where schName='大英一中'
update stuInfo set stuName='张十三' where stuName='张三'
delete from stuInfo where stuName='张十三'
CREATE TABLE [dbo].[ceshiInfo]([csId][char](4) primary key not null,csName varchar(20)not null)
insert into ceshiInfo(csId,csName) values ('1234','测试一')
insert into ceshiInfo(csId,csName) values ('1235','测试二')
delete from ceshiInfo

以上有sql的插入语句(insert)更新语句(update)以及删除语句(delete)

数据库脚本点击下方官方下载按钮即可下载,使用过后记得回来给我好评哟!谢谢

官方下载

sql创建数据表的脚本2018/3/28xp/win7/win104kb志在指尖

© 版权声明
好牛新坐标 广告
版权声明:
1、IT大王遵守相关法律法规,由于本站资源全部来源于网络程序/投稿,故资源量太大无法一一准确核实资源侵权的真实性;
2、出于传递信息之目的,故IT大王可能会误刊发损害或影响您的合法权益,请您积极与我们联系处理(所有内容不代表本站观点与立场);
3、因时间、精力有限,我们无法一一核实每一条消息的真实性,但我们会在发布之前尽最大努力来核实这些信息;
4、无论出于何种目的要求本站删除内容,您均需要提供根据国家版权局发布的示范格式
《要求删除或断开链接侵权网络内容的通知》:https://itdw.cn/ziliao/sfgs.pdf,
国家知识产权局《要求删除或断开链接侵权网络内容的通知》填写说明: http://www.ncac.gov.cn/chinacopyright/contents/12227/342400.shtml
未按照国家知识产权局格式通知一律不予处理;请按照此通知格式填写发至本站的邮箱 wl6@163.com

相关文章