select 字段|常量|表达式|函数 【from 表】 【where 条件】 union 【all】
select 字段|常量|表达式|函数 【from 表】 【where 条件】 union 【all】
select 字段|常量|表达式|函数 【from 表】 【where 条件】 union 【all】
.....
select 字段|常量|表达式|函数 【from 表】 【where 条件】
select * from employees where email like ‘%a%‘ or department_id>90;
select * from employees where email like ‘%a%‘
union
select * from employees where department_>90;
select id,cname,csex,t_ca from t_ca where csex=‘男‘
union
select t_id,tname,tgender from t_us where tgender=‘male‘
原文:https://www.cnblogs.com/qifanren/p/14825038.html