How to get the primary key fields from a postgres table
Posted: Thu 22 Aug 2013 04:05
Hi
Someone know how to get the primary key fields from a postgres table?
Im working with Delphi XE2 and XE4, DbExpress DevArtPostgres Driver.
I try with
SqlQuery1.SetSchemaInfo(stIndexes,'MyTable','');
SqlQuery1.Open;
But return a list of indexnames, but not the Primary Key Fields.
Thanks.
Someone know how to get the primary key fields from a postgres table?
Im working with Delphi XE2 and XE4, DbExpress DevArtPostgres Driver.
I try with
SqlQuery1.SetSchemaInfo(stIndexes,'MyTable','');
SqlQuery1.Open;
But return a list of indexnames, but not the Primary Key Fields.
Thanks.