How to get the name of fields ?

1 view
Skip to first unread message

Fábio Pinheiro

unread,
Nov 14, 2006, 8:27:51 AM11/14/06
to SQL-S...@googlegroups.com
does anybody know to get the name of the fields for a table, without
needing to use the tables and views of the system?

Fábio Pinheiro

Jason Cumberland

unread,
Nov 14, 2006, 9:03:11 AM11/14/06
to SQL-S...@googlegroups.com
The only method I know to get this information is from the INFORMATION_SCHEMA system views, an example query is below.

select * from information_schema.columns where table_name = 'yourtablenamehere'
--
Jason
:wq

Fábio Pinheiro

unread,
Nov 14, 2006, 4:33:13 PM11/14/06
to SQL-S...@googlegroups.com
ok, this way i know too.
I need a solution for any database server (oracle, sql-server, postgre,
firebird, etc...)
anybody knows ?


Jason Cumberland escreveu:

> The only method I know to get this information is from the
> INFORMATION_SCHEMA system views, an example query is below.
>
> select * from information_schema.columns where table_name =
> 'yourtablenamehere'
>

> On 11/14/06, *Fábio Pinheiro* <fcpin...@gmail.com

Reply all
Reply to author
Forward
0 new messages