varchar 字段中的 Shell 脚本序列中的 SQL 加载程序

时间:2021-04-14 20:58:23

标签: shell sql-loader

我有表 TABLE_TEST (ID VARCHAR2(50))。 我正在尝试在此表中使用以下命令在 shell 脚本中执行 sqlldr:

    load data
    infile 'test.txt'
    badfile 'test.bad'
    discardfile 'test.dsc'
    append into table TABLE_TEST
    fields terminated by '|'
    trailing nullcols
    (ROW_ID sequence(max))

这一直有效,直到插入 10 行,然后脚本重复数字 10,我想继续编号。 类似的东西:

ID
1
2
3
4
5
6
7
8
9
10
10

0 个答案:

没有答案
相关问题