Longest word PL SQL [message #611261] |
Mon, 31 March 2014 19:42 |
|
Ben892
Messages: 1 Registered: March 2014 Location: Morocco
|
Junior Member |
|
|
I have to write a stored function to find the longest word in a string
characters. IN PL/SQL
Can someone help me?
|
|
|
|
|
Re: Longest word PL SQL [message #611272 is a reply to message #611261] |
Tue, 01 April 2014 01:16 |
John Watson
Messages: 8931 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Using the regular expression functions would probably be the most elegant, and highest scoring, approach. A more clumsy technique would be to use SUBSTR in a loop from 1 to the length (LENGTH)of the string to read the string one character at time, counting the characters between spaces.
|
|
|