台湾中华邮政官网:怎么让SELECT搜索多个表和多个表中的字段,在同一条语句中,求救

来源:百度文库 编辑:高校问答 时间:2024/05/14 07:51:26
select from table_name where id 我想要把TABLE 多加两个 ID字段也多搜索出两个,然后在把记录调出来,可是就是实现不了

select from table_name where id union select from table_name where id

多个Select,每个查询一个表,求并集。

如果有关联的话使用连接.