Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Load a 37 digit number from file into table using sqlcl load

User_SEI52Sep 21 2021 — edited Sep 21 2021

Hi,
Here's my table
create table id_table (ID number)
Here's my csv file contain 37 digit number (sample.csv).
ID
123456789123456789123456789123456789
I loaded the sample.csv through,
sql -S -L /nolog 2>&1 << EOF
WHENEVER SQLERROR EXIT SQL.SQLCODE
connect $DB_CREDENTIAL
set loadformat delimited delimiter ,
show loadformat
load id_table sample.csv
EOF
No Error in load log. But, when I see the value in the table, the ID column displayed as
123456789123456780000000000000000000

What i'm missing here.

This post has been answered by thatJeffSmith-Oracle on Sep 21 2021
Jump to Answer
Comments
Post Details
Added on Sep 21 2021
3 comments
291 views