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

Home -> Community -> Usenet -> comp.databases.theory -> Efficient query to fetch the columns in an entire relation?

Efficient query to fetch the columns in an entire relation?

From: KSS Vijaya Bhaskar <kssvbhaskar_at_indiatimes.com>
Date: 17 Jul 2002 00:12:43 -0700
Message-ID: <bde31ae9.0207162312.1ac1095f@posting.google.com>


Hello,

Yesterday, I came across one simple question yet interesting.

What is the best way of retrieving all columns in a given relation using a SQL query.

Two possible alternatives are

  1. SELECT * FROM relation_name;
  2. SELECT COLUMN1, COLUMN2, ..., COLUMNn FROM relation_name;

I am not able to decide, which is better than the other and more importantly
WHY? Hope to get some reply on this,

Received on Wed Jul 17 2002 - 02:12:43 CDT

Original text of this message

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