How to truncate text stored in a column ?

I have a table (APP) containing id and remarks as follow:

1,'MRS (17/02/2010 12:05:45 PM): Before approving this application bla bla bla '
2,'ROSE (17/02/2010 12:05:45 PM): We have no objection. '
3,'DANIEL (17/02/2010 12:05:45 PM): This application is deleted from the main file. '
etc etc etc...

if I run sql command ( select id, function(remarks) from APP ), it would display

1,'Before approving this application bla bla bla'
2,'We have no objection.'
3,'This application is deleted from the main file.'

So what pl/sql code to put in the function to truncate the remarks as above ?

note : if the length of "editors" is fixed, ie, let say 20 char, then I could use
substr(remarks,21,500).

Thanks
LVL 1
KG1973Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
I don't understand what you are asking.  What do you mean by truncate?

0
slightwv (䄆 Netminder) Commented:
OH... I get it...

select substr(remarks,instr(remarks,':')+1) from table;


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KG1973Author Commented:
slightwv,

select substr(remarks,instr(remarks,':')+11) from table;

perfect :)
thanks a million
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.