谢谢

解决方案 »

  1.   

    用sql ,很多数据库都支持以下语法
    insert into newtable (fieldname) (select fieldname from oldtable where 条件)
      

  2.   

    我用的是Oracle和SQL数据库
    最好使用rs.update(...)这样的语句,以和我原来的程序能跟好的融合在一起
      

  3.   

    看错了,是同一个表,这样可以update 表名 set 字段=(select 字段 from 表名 where ID=老位置) where ID=新位置
      

  4.   

    oracle 就支持上面两种语法,它的SQL太强了,基本可以完成对数据库的所有操作