gougou0626 发表于 2007-05-19 17:53

insert sql 语句的实现

各位:

    现有一个应用,要取表1内所有记录,然后将对应记录编排序号后插入到表2中,除使用游标和循环计数变量插入外,有没有用不使用游标能直接插入的办法,谢谢。

peng_haibing 发表于 2007-05-20 09:06

insert into t2 select * from t1

kajue 发表于 2007-05-24 19:34

select* from systablesorder by sn into temp table_1;
insert into t1 select * from table_1;
页: [1]
查看完整版本: insert sql 语句的实现