Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT Statement

Status
Not open for further replies.

pkohli88

Programmer
Oct 25, 2006
30
US
Hi,
Is there any easy way for selecting all fields EXCEPT one field from table.

Thanks In Advance
 
CREATE TABLE temp-table as SELECT * FROM your-table

ALTER TABLE temp-table DROP COLUMN column-I-dont-want

SELECT * from temp-table



-------------------------
The trouble with doing something right the first time is that nobody appreciates how difficult it was - Steven Wright
 
In sql*plus you can define the column as "noprint" before running your query:

Code:
column column_name_to_exclude noprint
select * from your_table;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top