摘要: create database zuoyeuse zuoyecreate table student( sno varchar(20) not null, sname varchar(20) not null, ssex varchar(20) not null, sbirthday datetim 阅读全文
posted @ 2017-06-21 16:44 零语言 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 条件查询用where 比如:查询Score表中成绩在60到80之间的所有记录。 select DEGREE from score where degree>60 and degree<80 模糊查询用% 比如查询与三相关的数据: where cno like '3%' 3%是已三开头 %3%是中间带 阅读全文
posted @ 2017-06-21 16:43 零语言 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 创建/删除数据库 create database 数据库名 drop database 数据库名 use数据库 create table 表名() 列名 类型 限制 { 自增Identity(1,1) 非空 Not null 主键 建表时添加 primary key 已经创建好表之后新增约束 alt 阅读全文
posted @ 2017-06-21 15:47 零语言 阅读(171) 评论(0) 推荐(0) 编辑