This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
kurs:sqlldr_sql_loader [2008/11/06 15:33] mh created |
kurs:sqlldr_sql_loader [2015/04/29 10:05] mh |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Datei unter c:\temp\emp.ldr abspeichern | ||
+ | <code> | ||
+ | LOAD DATA | ||
+ | INFILE * | ||
+ | BADFILE badfile.csv | ||
+ | append | ||
+ | INTO TABLE bonus | ||
+ | FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | ||
+ | (employee_id "employees_seq.nextval", first_name, last_name) | ||
+ | BEGINDATA | ||
+ | ,bla,"fa,sel" | ||
+ | ,blu,fusel | ||
+ | ,bli,fisel | ||
+ | </code> | ||
+ | |||
+ | \> cd C:\app\product\11.1.0\db_1\BIN | ||
+ | |||
+ | C:\app\product\11.1.0\db_1\BIN>sqlldr.exe hr/hr control=c:\temp\emp.ldr | ||
+ | |||
+ | cvs exportieren | ||
+ | |||
+ | <code> | ||
+ | sqlplus username/password@string <<EOF | ||
+ | set feed off markup html on spool on | ||
+ | spool c:\temp\filename | ||
+ | select * from <table>; | ||
+ | spool off | ||
+ | set markup html off spool off | ||
+ | </code> |