Feb 11, 2011

if the value is in mb or CLOB data type

SUBSTR(REPLACE(REPLACE(REPLACE(SUBSTR(COLUMN_NAME,INSTR(COLUMN_NAME,'to')+3),CHR(10),' '),CHR(13),' '),CHR(124),' '),1,40) AS DESCRIPTION
 or

Use DBMS_LOB.SUBSTR(Column_name,250,1)

No comments:

Post a Comment