|
|
Another Question [message #372991 is a reply to message #372979] |
Wed, 21 March 2001 10:32 |
marco
Messages: 46 Registered: March 2001
|
Member |
|
|
I don't understand what instr i should put to make
it happen. I have a table with thousands of names.
Tell me if this could work
update table_name
set column_name = upper(substr(name, ???(name, '')
etc.
|
|
|
Re: Another Question [message #373005 is a reply to message #372979] |
Wed, 21 March 2001 23:14 |
Thirumalai and Prakash
Messages: 23 Registered: March 2001
|
Junior Member |
|
|
Hi Macro,
INSTR is a function can be used to find out location of a "string" within another "string"
Syntax is
INSTR("source string","search string").
You can update table as follows
UPDATE table_name set column_name=upper(substr(column_name,instr(column_name,' '))) ||', '|| substr(column_name,1,instr(column_name,' '));
And also, you can update
update table_name set column_name= upper(substr(
column_name,starting position,end position));
Hope it helps
S.Thirumalai
|
|
|
|