Home » SQL & PL/SQL » SQL & PL/SQL » which is faster or any difference
which is faster or any difference [message #8230] Tue, 05 August 2003 06:14 Go to next message
roblvl
Messages: 27
Registered: June 2003
Junior Member
hi folks,

i have a table emp
which has the following columns
empno
ename
job
sal
deptno

i have a insert statement like this

1) insert into emp values ('1234','xyz','clerk',null,null);

2) insert into emp (empno,ename,job) values ('1234','xyz','clerk');

which statement is faster
the first or the second
is there any difference

thnks in advance
rob
Re: which is faster or any difference [message #8232 is a reply to message #8230] Tue, 05 August 2003 06:52 Go to previous messageGo to next message
Uwe
Messages: 260
Registered: February 2003
Location: Zürich, Switzerland
Senior Member
Hi Rob,

there is no significant difference or time difference.
The only thing how to use the second is that you don't need to put in nulls for unused fields.
rgds
Uwe
Re: which is faster or any difference [message #8235 is a reply to message #8230] Tue, 05 August 2003 08:43 Go to previous message
William Robertson
Messages: 1643
Registered: August 2003
Location: London, UK
Senior Member
In production code you would always specify the columns anyway (apart from the nulls).
Previous Topic: Procedure
Next Topic: PL/SQL Reverse Engineer Tool
Goto Forum:
  


Current Time: Wed Apr 24 21:19:44 CDT 2024