[SQL ] SQLLDR 負值問題

看板Database作者 (快樂投資人)時間15年前 (2010/03/21 21:52), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
請問各位大大, 在製作了一個 income.ctl load data infile "D:\income_table.csv" badfile "bad.log" discardfile "discard.log" into table income_temp fields terminated by ',' trailing nullcols ( id , name , yearly , quarter , revenue , costs , Gross1 , Gross2 ) 在執行 sqlldr system/manager control=income_table.ctl direct = true 時, 在gross1中, 只要數值是小於0的, 就會出現 error 而跳過, 請問有什麼方式可以強制寫入嗎? income_temp table 如下: create table income_temp ( id varchar2(6), /*代號 */ name varchar2(10), /*公司全名 */ yearly number(4), /*年度 */ quarter number(2), /*季節 */ revenue number(12), /*營業收入 */ costs number(12), /*營業成本 */ Gross1 number(12), /*營業毛利(毛損) */ Gross2 number(12), /*營業毛利(毛損) */ ); grant select on income_temp to public; grant index on income_temp to public; grant update on income_temp to public; grant delete on income_temp to public; grant insert on income_temp to public; -- 木吉他新手的家 http://www.wretch.cc/blog/ronnieyeh 我的 Blog 除了吉他, 還有台股每週資料試算表彙整下載, 資料有: 基本面, 籌碼面, 技術面, 產業面, 題材面, 讓試算表一網打盡. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.193.87.78
文章代碼(AID): #1BfYIpi- (Database)