for  ms sql:
select * from into table2 table1;
for  other:
create table table2 as select * from table1