DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Update CLOB from LONG

  1. #1
    Join Date
    Jan 2007
    Posts
    5

    Update CLOB from LONG

    I'm using Oracle 8i.
    Source table contains LONG datatype and target table contains CLOB datatype.

    How do I Update target with source value?

    Thanks,
    ssd.

  2. #2
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220
    how about using TO_BLOB

    Insert into select id,TO_LOB(col_long) from

    Srini

  3. #3
    Join Date
    Jan 2007
    Posts
    5
    My requirement is to Update the table. I understand that in Oracle 8i, only Dynamic SQL needs to be used.
    I am getting an error for following statement -
    EXECUTE IMMEDIATE 'Update clsl_account a set notes = (select to_lob(notes) from account where accountid = a.accountid)'

    Error encountered - ORA-00932: inconsistent datatypes.

  4. #4
    Join Date
    Jan 2003
    Location
    Hull, UK
    Posts
    220

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width