Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old April 16th, 2008, 10:10 AM
Member
 
Join Date: Sep 2007
Posts: 94
Default on a table

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.
Reply
  #2  
Old April 16th, 2008, 10:19 AM
Moderator
 
Join Date: Dec 2006
Posts: 250
Default

Quote:
Originally Posted by sasimca007
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?
Reply
Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles