mysql数据库SQL查询语句SELECT详细查询(超详细)
常规查询
select * from 表名;
select 列1,列2,... from 表名;
select 字段 as 名字.... from 表名;
select 表名.字段 .... from 表名;
select 别名.字段 .... from 表名 as 别名;
distinct 字段
条件查询
㈠比较运算符:>, <, >=, <=, =, !=, <>
㈡逻辑运算符:and, or, not
㈢模糊查询:like, rlike
㈣范围查询:in,not in,between…and,not between…and
空判断