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

Thread: How to cut text from the end of a CLOB column?

  1. #1
    Join Date
    Dec 2001
    Location
    Tel-Aviv,Israel
    Posts
    233

    How to cut text from the end of a CLOB column?

    Hi guys,

    I need to cut the ,for example, the last 2000 charcters from the end of a CLOB column which stores sql queries.
    In the end of each query , there is a remark that I need to parse.

    Thanks in advance,
    Nir

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    I think DBMS_LOB.copy would do the trick... if you have to fine tune it other DBMS_LOB functions might help as well.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  3. #3
    Join Date
    Dec 2001
    Location
    Tel-Aviv,Israel
    Posts
    233
    Thanks!
    Finally , I found a solution with regexp_replace function.

    Regards,
    Nir

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