oracle 通過查詢靈活插入資料 insert into ...select..,oracle...select.

來源:互聯網
上載者:User

oracle 通過查詢靈活插入資料 insert into ...select..,oracle...select.


insert into reg_user (id,name,password,area_code,reg_time,first_pswd,record_type)      select l.reg_user_id,l.entry_person,'4QrcOUm6Wau+VuBX8g+IPg==',l.area_code,sysdate,'123456',l.type      from location_info l where l.type=5;




Oracle資料庫中把select語句中查詢的記錄怎批量插入資料庫中?

insert into B select * from A;
注意:查詢結果要與要插入的表的屬性列一致。

可以參考:hualong.javaeye.com/blog/692984
 
Oracle的blob欄位可以用Insertintoselect插入嘛?

會的,每做一次查詢所需的時間是一定的,遍曆表的查詢速度就取決於資料量的大小。太大了會有時間上的影響,如果是特別龐大的資料庫,同時對資料處理的要求又特別高的話就看得出來。一般的應用方面不會有太大差距。
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.