dbTalk Databases Forums  

Convert Long to Varchar

comp.databases.oracle comp.databases.oracle


Discuss Convert Long to Varchar in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fred
 
Posts: n/a

Default Convert Long to Varchar - 08-13-2004 , 07:03 AM






Hi all,

I have a nice problem. I´m trying to convert a Long to varchar2. It
works when the long field doesn´t contain more than 2000 characters.
How do I solve this?

I´m working with Oracle 7 by the way.

/Fred

Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Convert Long to Varchar - 08-16-2004 , 03:55 AM






Fred wrote:
Quote:
Hi all,

I have a nice problem. I´m trying to convert a Long to varchar2. It
works when the long field doesn´t contain more than 2000 characters.
How do I solve this?

I´m working with Oracle 7 by the way.

/Fred
SQL or PL/SQL?
SQL: try "set long <an arbitrary large value>"
PL/SQL: a varchar variable holds 4k/32k max, so you
are stuck. 32k when you just want to use it, 4k when
you want to interface with it (e.g. store in a table)

--

Regards,
Frank van Bortel



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.