语法:
select
查询列表
from
表名
where
筛选条件
分类:
一.按条件表达式筛选
条件运算符: > < = != >= <= <>(不等于)
二.按逻辑表达式筛选
逻辑运算符: && || !
and or not
三.模糊查询
like
between and
in
is null
四.排序查询:
语法:
select 查询列表
from 表
[where 筛选条件]
order by 排序列表 [asc|desc]
select length(last_name) 字符长度, last_name from employees
(length函数可以计算字符的长度)