PDA

View Full Version : Finding the Primary Key


Roost3r
04-30-2003, 09:56 PM
Is there a way to find the primary key(column name) in a table via a SQL statement? Show Primary From Table ???

raf
05-01-2003, 11:37 AM
Check out

there is some example code to
http://www.php.net/manual/en/function.mysql-field-flags.php