INFILE '/dm/dmdbms/data/t1.txt'
INTO TABLE CNDBA.T10
FIELDS ','
[dmdba@dmdcp data]#
创建外部表:
SQL> create external table CNDBA.T10(id int, name
varchar(20)) from '/dm/dmdbms/data/t1.ctl';
executed successfully
used time: 4.158(ms). Execute id is 55626.
SQL>
SQL> select * from cndba.t10;
LINEID ID NAME
---------- ----------- ----
1 1 AA
2 2 BB
3 3 CC
4 4 DD
5 5 EE
used time: 6.542(ms). Execute id is 55634.
SQL>
3
示例
2
[dmdba@dmdcp data]# pwd
/dm/dmdbms/data
[dmdba@dmdcp data]# cat t11.txt
1|2|3
4|5|6
7|8|9
相关文档
评论