Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Modify data from select before insert.
insert into table1
(
col1
)
select <any_function_you_wish>(col1) from tabl2;
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Lyndon Tiu
Sent: Thursday, August 19, 2004 2:04 PM
To: oracle-l_at_freelists.org
Subject: Modify data from select before insert.
Hello guys,
I could use a few tips here.
I have a sql statement:
insert into table1
(
col1
)
select col1 from tabl2;
Problem is, I need to modify the data in the column from table2 first before inserting to table1. Like add a dash, after the third character ... chnage all A's to B's sort of thing.
Can you guys give me a few hints and perhaps a few keywords I can use to search google for?
Thank you very much.
--
Lyndon Tiu
![]() |
![]() |