【SQL开源代码栏目提醒】:网学会员,鉴于大家对SQL开源代码十分关注,论文会员在此为大家搜集整理了“002.sql”一文,供大家参考学习!
use db_Sql
GO
if exists(select * from INFORMATION_SCHEMA.TABLES
where table_name = 'tb_student01')
drop table tb_student01
GO
--创建学生信息表“tb_student01”
create table tb_student01
(
学生编号 int identity(1001,1),
学生 varchar(30),
学生成绩 float
)
GO
--向学生信息表中插入几条数据
insert into tb_student01 values('石莹','91')
insert into tb_student01 values('李心','95')
insert into tb_student01 values('张梅','88')
insert into tb_student01 values('车丽','89')
insert into tb_student01 values('李理','100')
GO
insert into tb_Student01
values('小明','84')
select @@identity as '学生编号'