- 15
- 0
- 约1.28万字
- 约 13页
- 2016-10-02 发布于贵州
- 举报
计算机二级SQ语句
关系数据库标准语言
SQL概述
SQL(structured query language)是结构化查询语言的缩写,是关系数据库的标准语言。SQL的核心是查询,主要功能为:数据查询(Select)、数据定义(Create、Drop,Alter)、数据操纵(Insert ,Update , Delete)、数据控制(Grant , Revoke)
特点:
是一种一体化的语言
是一种高度非过程化的语言
非常简洁
既可在命令窗口中使用,也可在程序中使用
数据查询
简单查询
格式:select [distinct] 字段名列表 from 表名 [where 条件]
select 姓名,性别,出生日期 from zgda
select * from zgda
select distinct 职称 from zgda
select distinct 性别,职称from zgda
select * from zgda where 性别=”女”
select * from zgda where 职称=教授
select * from zgda where 工资700
select 姓名,性别,婚否 from zgda where 婚否=.t.
select * from zgda where 职称=教授 and 性别=男
select * from zgda where 性别=男
原创力文档

文档评论(0)