【SQL Sever】建立数据库并查询,RX,代码怎么写?--如果可能的话,加一点注释说明。
发布网友
发布时间:2022-04-14 22:51
我来回答
共2个回答
热心网友
时间:2022-04-15 00:20
建数据库你回吧 Management Studio有建数据库向导
建表也有向导 下面进行查询
插入数据
insert into STUDENT values(参数1,参数2,参数3……)
(1)select 学号,姓名,性别 from STUDENT
(2)select * from STUDENT where 生源地='福建'
(3)select 姓名,datediff(year,出生日期, getdate()) As '年龄' from STUDENT
(4)select * from STUDENT where 姓名 like '钱%' and 性别='女'
(5)select count(*) as '学生人数' from STUDENT
(6)select * from CLASS order by 班号 DESC
(7)update STUDENT set 姓名='张玲' where 学号=8103
(8)select * from STUDENT where 学号 between 8101 and 8103
(9)delete from STUDENT where 姓名='李飞'
(10)drop teble STUDENT
热心网友
时间:2022-04-15 01:38
查讯分析器里面做吗?还是企业管理器!追问Management Studio