这样的SQL该怎么写?
create table test1
(
id1 varchar(10),
name1 varchar(20)
)
insert into test1 select '01','a1'
insert into test1 select '02','a2'
create table test2
(
id2 varchar(10),
name2 varchar(20)
)
insert into test2 select '03','b1'
insert into test2 select '04','b2'
/*
要得到这样的报表:
id1 name1 id2 name2
01 a1 03 b1
02 a2 04 b2
*/
drop table test1
drop table test2