;
语法是:列名 as 别名,as可省,别名中有空格需要双引号
字符串连接
--查询姓名,工资
select last_name||first_name ,salary from employee;...= >=,逻辑运算(and or not),between xxx and xxx,
where id (not)in(1,2,3,4)查询id在1234中的,
is(not) null 可以查询某个字段为空...此处rownum不更换
在tb1结果基础上查询,rownum>6
select * from (tb1) where r>6
查询工资最高的6-10;
工资降序
取前10
筛选>6的
表连接 join...可省) join
右外连接(右边为主,右找左,左边无,左则为空)
right (outer可省) join
全外连接
full (outer可省) join
正常的匹配,不正常的左边为空的显示,右边为空的也显示...mysql> SHOW TRIGGERS\G;
结果,显示所有触发器的基本信息;无法查询指定的触发器。