Home » SQL & PL/SQL » SQL & PL/SQL » extract some letters from a string
extract some letters from a string [message #37862] Mon, 04 March 2002 05:46 Go to next message
Jess
Messages: 3
Registered: March 2002
Junior Member
Does somebody can tell me how to extract the two first letter from a string?
Ex.: My name is Lemieux,
I want the system extract the letters 'Le'
Re: extract some letters from a string [message #37863 is a reply to message #37862] Mon, 04 March 2002 05:59 Go to previous messageGo to next message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
substr('Lemieux',1,2)
Re: extract some letters from a string [message #37869 is a reply to message #37862] Mon, 04 March 2002 10:38 Go to previous messageGo to next message
alina
Messages: 1
Registered: March 2002
Junior Member
string=My name is Lemieux.
substr(string,12,2) = Le
Re: extract some letters from a string [message #37874 is a reply to message #37862] Mon, 04 March 2002 13:35 Go to previous message
Lance Pris
Messages: 40
Registered: January 2002
Member
If I wanted to strip the last x number of letters from a sting how would I do that if I did not know the exact length?

thanks
Lance
Previous Topic: Re: Cross Tab Report
Next Topic: create new record based on old...
Goto Forum:
  


Current Time: Tue Apr 23 18:11:37 CDT 2024