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 -> Oracle and SQL Tuning

Oracle and SQL Tuning

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


This was a question asked to me during an interview :

What is the difference between

SELECT * from emp;

and

SELECT empno,ename,dept_code from emp;

emp is a table with only three columns --> empno,ename and dept_code

Which statement is more optimal ?

i tried an explain plan on both statements and got similar results i.e. full table access on table emp 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:21 CDT

Original text of this message

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