Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display the last ten characters of a string 1

Status
Not open for further replies.

ksnpc

Technical User
Jan 23, 2004
91
US
It seems like it shouldn't be too hard to do this, but I can't get it to work. I am trying to see the last part of a clob field. Does anyone have any suggestions on how to do this?
 
Sure, ksnpc, here is a proof of concept:
Code:
SQL> create table ksnpc (x clob);

Table created.

SQL> insert into ksnpc values ('123456789Last10chrs');

1 row created.

SQL> select substr(x,-10) from ksnpc;

SUBSTR(X,-10)
------------------------------------------------------
Last10chrs
Let us know if this resolves your question.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[ Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.
 
That took care of it, thanks. I was making it way too complicated. [blush]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top