Oracle copy data to another table

前端 未结 5 1689
旧时难觅i
旧时难觅i 2020-12-30 20:41

In the Oracle, I copy data from a backup to a new table, it doesn\'t work.

what is the correct syntax ?

Thanks

select CODE, MESSAGE into EXC         


        
5条回答
  •  被撕碎了的回忆
    2020-12-30 21:14

    You need an INSERT ... SELECT

    INSERT INTO exception_codes( code, message )
      SELECT code, message
        FROM exception_code_tmp
    

提交回复
热议问题