i have an input file: $home/dir/subdir/input.txt
content of input.txt:
123,0000,11111,3,1,X
124,0001,11112,3,1,Y
125,0002,,4,2,Y
129,0003,11114,4,2,X
I have a table where col2, col3 cannot be null:
| col1 | col2 | col3 | col4 | col5 | col6 | col7 | col8 | col9 |
|---|---|---|---|---|---|---|---|---|
| 123 | 0000 | 11111 | 3 | 1 | X | |||
| 124 | 0001 | 11112 | 3 | 1 | Y | |||
| 129 | 0003 | 11114 | 4 | 2 | X |
How do I insert the contents of input.txt to the table accordingly? using pl/sql and unix scripting