Search Postgresql Archives

Re: How to detect primary key of a table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sergey Karin schrieb:

Yes, it is not a problem via psql.

But I want to detect primary key via libpq (e.g using select commands)

Look into informational-schema
or start psql with the option -e
then use \d+ and see what it prints :-)

Regards
Tino


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux