摘要: --1.查询所有列 select * from Student --2.查询一个表中的指定的列 select 姓名, 总学分 from Student --3.定义列别名 select 姓名 as xm , 总学分 as zxf from Student --4.替换查询结果中的数据 select 姓名, case when 总学分=42 --模糊查询 select * from Stud... 阅读全文
posted @ 2017-11-15 17:31 你的斗志并没有失去 阅读(134) 评论(0) 推荐(0)
摘要: --创建数据库 create database StudentDB --使用数据库 use StudentDB --使用系统数据库 use master --删除数据库 drop database StudentDB ---创建表 create table Student ( 学号 int primary key identity(1000,1), 姓名 varchar(50) not null... 阅读全文
posted @ 2017-11-15 17:25 你的斗志并没有失去 阅读(833) 评论(0) 推荐(0)