|
| Total Answers and Comments: 3 |
Last Update: July 03, 2008 Asked by: ssq1999 |
|
| | |
|
No best answer available. Please pick the good answer available or submit your answer. | |
June 25, 2008 22:31:29 | #2 |
| astaputra |
|
Member Since: June 2008 Contribution: 7 |
RE: Data Conversion
| select SUBSTR('Hunt, Michael',1,INSTR('Hunt, Michael',',')-1) LAST_NAME,SUBSTR('Hunt, Michael',INSTR('Hunt, Michael',',')+1) FIRST_NAME from dual
Here is the example how to use and accordingly change the query and insert into another table.
Thks... |  | | Is this answer useful? Yes | No | | |
|
| |
|
July 03, 2008 10:19:15 | #3 |
| sam2233 |
|
Member Since: July 2008 Contribution: 1 |
RE: Data Conversion
| create table emp2 as(select Substr(ename,1,instr(ename,',')-1) as last, substr(ename,instr(ename,',')+1,length(ename)) as first from emp1) |  | | Is this answer useful? Yes | No | | |
|
| |
Go To Top
|