Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: insert/update performance
Norris wrote:
>
> May I know if there is any performance difference for the following two
> statement (with and without subquery):
>
> insert into table1 select 'a','b' from dual;
>
> insert into table1 values ('a','b');
I would go with values...
You will get an extra call to the db to do the select...
From what I've seen at a lot of places, people over use 'select ... from dual' especially in PL/SQL...
Things like 'select function_name into x from dual' instead of x := function_name etc etc etc
HTH
--
"Some days you're the pigeon, and some days you're the statue." Received on Thu Jul 08 1999 - 08:02:10 CDT
![]() |
![]() |