SQLLDR字段FILLER属性

A filler field, specified by BOUNDFILLER or FILLER is a data file mapped field that does not correspond to a database column.

Filler fields are assigned values from the data fields to which they are mapped:

  1. The syntax for a filler field is same as that for a column-based field, except that a filler field's name is followed by FILLER.
  2. Filler fields have names but they are not loaded into the table.
  3. Filler fields can be used as arguments to init_specs (for example, NULLIF and DEFAULTIF).
  4. Filler fields can be used as arguments to directives (for example, SIDOIDREF, and BFILE).
  5. To avoid ambiguity, if a Filler field is referenced in a directive, such as BFILE, and that field is declared in the control file inside of a column object, then the field name must be qualified with the name of the column object. This is illustrated in the following example:

LOAD DATA

INFILE *

INTO TABLE BFILE1O_TBL REPLACE

FIELDS TERMINATED BY ','

(

    emp_number char,

    emp_info_b column object

    (

    bfile_name FILLER char(12),

    emp_b BFILE(constant "SQLOP_DIR", emp_info_b.bfile_name) NULLIF emp_info_b.bfile_name = 'NULL'

    )

)

BEGINDATA

00001,bfile1.dat,

00002,bfile2.dat,

00003,bfile3.dat,

  1. Filler fields can be used in field condition specifications in NULLIFDEFAULTIF, and WHEN clauses. However, they cannot be used in SQL strings.
  2. Filler field specifications cannot contain a NULLIF or DEFAULTIF clause.
  3. Filler fields are initialized to NULL if TRAILING NULLCOLS is specified and applicable. If another field references a nullified filler field, then an error is generated.
  4. Filler fields can occur anyplace in the data file, including inside the field list for an object or inside the definition of a VARRAY.
  5. SQL strings cannot be specified as part of a filler field specification, because no space is allocated for fillers in the bind array.

Note:The information in this section also applies to specifying bound fillers by using BOUNDFILLER. The only exception is that with bound fillers, SQL strings can be specified as part of the field, because space is allocated for them in the bind array.

A sample filler field specification looks as follows:

field_1_count FILLER char,

field_1 varray count(field_1_count)

(

   filler_field1  char(2),

   field_1  column object

   (

     attr1 char(2),

     filler_field2  char(2),

     attr2 char(2),

   )

   filler_field3  char(3),

)

filler_field4 char(6)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值