select * into table1 from table2,table3 from可以跟多个表吗?(表结构都一样)

2025-12-04 19:23:42
推荐回答(3个)
回答1:

不能,而且你写的有语法错误,没有select * into ,只有 select * from 或 insert into

要用 inner join ,cross join等
例如
select * from table1 inner join table2 on table1.ID = table2.t1_ID inner join table3 on table3.ID = t2_ID

回答2:

语法有错
insert into table1(列名) select 列名 from table2,table3 ......

回答3:

请查看MSDN文档