By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,858 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

on a table

100+
P: 129
Hello friends,
May i know how to know the column names of a table in postgresql. I am expecting through query. I have to apply that query in modperl.
Apr 16 '08 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 700
Hello friends,
May i know how to know the column names of a table in postgresql. I am expecting through query. I have to apply that query in modperl.
To be clear, you need to find a query wich show you column names in a given table. If so you can do it for example using information_schema
Expand|Select|Wrap|Line Numbers
  1. select column_name from information_schema.columns where table_name='put here the table name';
  2.  
Is it what you are looking for?
Apr 16 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.