Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to put data of a file in an element

Status
Not open for further replies.

kavi98

Programmer
Dec 14, 2000
48
0
0
US
Hi ,
I need to put in the contents of a file in an element,
How can i do it ,as i have tried to create a .sql file with a update in it ,but it gives an error.

the contents of the file are large.

Thanks
for the help.
 
I think we need more information. What kind of error? What kind of file (text/binary)?
By the way, you can open file in Oracle using the UTL_FILE package...
 
it is a xml file which needs to be inserted in the element of a table.
thanks
 
Oh, I didn't understood you!
You can insert every line of the file separately, using varchar2 type.
Or you can insert the whole file as an only element, then you surely will need the clob type.
Anyway, you'll have to open the file, read it's contents and insert them to the table. You can do that with a procedure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top