作者ronnieyeh (快乐投资人)
看板Database
标题[SQL ] SQLLDR 负值问题
时间Sun Mar 21 21:52:46 2010
请问各位大大, 在制作了一个 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