dbTalk Databases Forums  

Need Help With Query

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Need Help With Query in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pete
 
Posts: n/a

Default Need Help With Query - 02-24-2009 , 06:40 PM






Hi,

I am new to Oracle and I was wondering if someone could help me with a
query. Basically, what I want to know is how to return all the
columns in a given table EXCLUDING the primary key column.

Thanks In Advance,

Pete

Reply With Quote
  #2  
Old   
jgar the jorrible
 
Posts: n/a

Default Re: Need Help With Query - 02-24-2009 , 07:26 PM






On Feb 24, 4:40*pm, Pete <shunpike... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,

I am new to Oracle and I was wondering if someone could help me with a
query. *Basically, what I want to know is how to return all the
columns in a given table EXCLUDING the primary key column.

Thanks In Advance,

Pete
desc user_tab_columns to see what you can know about columns.
constraint_type='P' in user_constraints to see what the primary key
is.

It is entirely possible to have tables with no primary key.

Google on those views (also there are ALL and DBA instead of USER,
with increasing amounts of privilege) to find example scripts.
user_tab_columns means those in the schema, all_tab_columns means
those the user can see. Object names tend to be capitalized unless
quoted. More information is in the doc set, searchable at
http://tahiti.oracle.com.

jg
--
@home.com is bogus.
http://weblog.infoworld.com/robertxc...aks_sprin.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.