oracle使用sqlldr(有sequence)匯入資料,sqlldrsequence

來源:互聯網
上載者:User

oracle使用sqlldr(有sequence)匯入資料,sqlldrsequence

命令:

sqlldr userid=[USERNAME]/[PASSWORD]@[DATABASE] control=[FILEPATH]


username  使用者名稱

password  密碼

database  資料庫執行個體

filepath    ctl檔案的實體路徑



-----------------------------------------------------------------------

檔案:

load datainfile *append into table [TABLENAME]fields terminated by ","trailing nullcols([ID] sequence(1,1),  [COL1],  [COL2],  [COL3],  [COL4],  [COL5],  [COL6])Begindatax, xx, xxx, xxxx, xxxxx, xxxxxxa, aa, aaa, aaaa, aaaaa, aaaaaa

tablename  表名

id  主鍵

col1,2,3,4,5,6  欄位名

相關文章

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.