Link to home
Start Free TrialLog in
Avatar of LuckyLucks
LuckyLucks

asked on

clob to char in oracle

hi

To string output a clob value thats about 4032 chars, how can I accomplish this?

I have tried, with no luck the following:

DBMS_LOB.SUBSTR (myfield, 4050)
DBMS_LOB.SUBSTR (myfield)
to_char(myfield)
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

>>if you are using sql, you can't return more than 4000 bytes from the clob

If you are using functions that return a varchar2 you are bound by the limits for varchar2.

If you just select the column without any functions, it should be just fine:
select myfield from yourtable;