Get primary key of an view/table

HI,

Is it possible in delphi to get the primary key of an View? if not, how
can I get the primary key of an Table? The database doesn't matter: I
use Interbase and Access, and so I need a standard Delphi command (BDE?
ODBC?) to do this.

Thanx,

MDB