union关键字,联合查询。注意点,1.两张表查询的列名,数量要相同,类型要相容。 2.union会对两张表相同的数据进行过滤,也就是自动进行distinct查询。3.如欲不对相同的数据进行过滤,请用union all关键字。