Oralce学习笔记(sql取一张表的数据插入另一张表)

 insert into pm_per_res_page_ele
    (RES_ID,ELE_TYPE_CODE,ELE_CODE,REMARKS)
select
    per_res_page_ele_id.nextval as RES_ID,
    'Menu.Left.Tree' as ELE_TYPE_CODE,
    menu.menu_id as ELE_CODE,
    menu.menu_name as REMARKS
 from SYS_MENU menu
posted @ 2011-07-25 14:47  Grace Dream  阅读(325)  评论(0编辑  收藏  举报