Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> SQL and Oracle Tuning

SQL and Oracle Tuning

From: <jayu_c_at_my-dejanews.com>
Date: Sun, 30 Aug 1998 15:01:22 GMT
Message-ID: <6sbpg2$fud$1@nnrp1.dejanews.com>


This was a question asked during an interview

Table emp has three columns :

empno
ename
dept_code

Now if u write :

SELECT * FROM EMP;
and
SELECT empno,ename,dept_code FROM EMP;

Which statement is more optimal and why?

I have already tried an 'explain plan' on them - it yields similar results. That is, a full table access is carried out for both statements.

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum Received on Sun Aug 30 1998 - 10:01:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US