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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi All, Can I run a TO_CHAR on a

Status
Not open for further replies.

Muskaan

Programmer
Oct 21, 2002
47
US
Hi All,

Can I run a TO_CHAR on a LONG Datatype ? Long has a size of 2 GB. Is there a limitation on TO_CHAR ?

I need to dump the LONG data along with other columns of a table into a flat file, in the following format:

"COL1 data","COL2 data","COL3 data"

say col3 data is LONG, can I use TO_CHAR on it to dump it to the file? Printing it directly without any conversion does not work, since operation
select chr(34)||COL3||chr(34) from table_name
gives an error

your help is highly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top