27,581
社区成员




--不必存储过程,这样就好。
insert tab3(col列表)
select * from tab1,tab2 where ....
--比如 我要查 TB1 TB2 2表的学生姓名和对应成绩 通过学号连接 ,条件是要求那同学是男的
select 姓名,成绩
into tb3
from tb1 ,tb2
where tb1.学号=tb2.学号 and sex='男'
select *
into tb3
from tb1,tb2
where....