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

Home -> Community -> Usenet -> c.d.o.server -> Re: Selecting out certain columns

Re: Selecting out certain columns

From: Pablo Sanchez <pablo_at_dev.null>
Date: Thu, 2 May 2002 14:18:00 -0600
Message-ID: <Z9hA8.1374$VQ6.533505@news.uswest.net>

"Stephen" <grider22_at_hotmail.com> wrote in message news:22d5cb4a.0205021033.445964d9_at_posting.google.com...
> Let's say you have a table with 50 columns and you want to retrieve
> data that lists only 49 of those columns. Is there any easy way to
do
> this without typing: select column1, column2,...column49 from table.
> So basically is there a way to select out certain columns in your
> statement while retrieving the rest of the columns?

I'm not clear on the context ... is this if you were writing an sproc? I use xemacs while I develop code and because of that, I can have one 'window' (in emacs lingo) with a SQL*PLUS session. I can do a 'describe' on a table, copy the contents of the output to another window (buffer) and nuke the columns that I don't need.

The same principle can be applied if you use the windows version of SQL*PLUS and issue a 'describe' and COPY the screen to your favorite editor where you can mash, spindle and mutilate with no federal penalties whatsoever.

Did I answer your question? Heh heh! I'm not sure ...

--
Pablo Sanchez, High-Performance Database Engineering
mailto:pablo_at_hpdbe.com
http://www.hpdbe.com
Available for short-term and long-term contracts
Received on Thu May 02 2002 - 15:18:00 CDT

Original text of this message

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