蚌埠六中官网:怎么让SELECT搜索多个表和多个表中的字段,在同一条语句中,求救
来源:百度文库 编辑:杭州交通信息网 时间:2024/10/06 17:52:13
select from table_name where id 我想要把TABLE 多加两个 ID字段也多搜索出两个,然后在把记录调出来,可是就是实现不了
select from table_name where id union select from table_name where id
多个Select,每个查询一个表,求并集。
如果有关联的话使用连接.