举个例子,两个table都是如下创建的:
create table table1
(
a int not null, b int not null
)
create table table2
(
a int not null, b int not null
)
table1有一些数据,现在我想select * from table1 where a > 2,然后将这些行插入table2,请问该如何编程实现?
请写个较短的程序实现它
create table table1
(
a int not null, b int not null
)
create table table2
(
a int not null, b int not null
)
table1有一些数据,现在我想select * from table1 where a > 2,然后将这些行插入table2,请问该如何编程实现?
请写个较短的程序实现它
select * into table2 from table1 where a > 2