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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to select field name

Status
Not open for further replies.

Cantor

Programmer
Apr 27, 2000
28
0
0
CA
Hello,short question: Is it possible to select only the fiel name?shorter question: How?Thanx,Cantor
 
Please describe the question else it is tough to respond.<br>Thank you <p>Dr. Sql<br><a href=mailto:vpathisseril@yahoo.com>vpathisseril@yahoo.com</a><br><a href= > </a><br>Good Luck.
 
Cantor,<br>Try posting a sample SELECT statement (whether it works or not), and what you want to achieve with it. <p>Malcolm Wynden<br><a href=mailto:wynden@island.dot.net>wynden@island.dot.net</a><br><a href= > </a><br>
 
hi,<br>&nbsp;&nbsp;I am nagendra,here is some solution, check out useful <br>&nbsp;&nbsp;or not one view is available in oracle database dictionary<br>&nbsp;&nbsp;called user_tab_columns, using this view we can select<br>&nbsp;&nbsp;column names belongs to specific table.<br><br>&nbsp;Ex:<br>&nbsp;&nbsp;select column_name<br>&nbsp;&nbsp;from&nbsp;&nbsp;&nbsp;user_tab_columns<br>&nbsp;&nbsp;where&nbsp;&nbsp;table_name = 'EMP'<br><br>&nbsp;&nbsp;regards<br>&nbsp;&nbsp;Nagendra P.<br>&nbsp;&nbsp;<A HREF="mailto:naga_p@hotmail.com">naga_p@hotmail.com</A>
 
Try:<br><br>Select * from mytable<br>where 1=0<br><br>This returns field names only.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top