如何通过select语句来查询三张表 并生成新表

2025-05-21 14:26:08
推荐回答(2个)
回答(1):

select * from a,b,c 这样就行了
一般情况会有一些限制条件
那你就加上去 比如select * from a,b,c where a.a = b.b and a.d = c.c这样的

回答(2):

create table table_name as select table1.col,table2.col,table3.col from table1,table2,table3 where XXXX