INSERT ... SELECTが必要です INSERT INTO exception_codes( code, message ) SELECT code, message FROM exception_code_tmp