Sam For columns in a statement $sth, DBD:mysql maintains a boolean array named is_pri_key.
PB ----- ----- Original Message ----- From: sam wun To: mysql@lists.mysql.com Sent: Saturday, January 01, 2005 7:58 AM Subject: How to determine a field is part of the primary key in a table? Hi list, I m writing a perl program and would like to use it (wiht mysql command) to determine whether a field name is (or is part of) a primary key of a table. If you know how to handle this, please drop me a line. Thanks and Happy New Year. Sam -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]