Does anyone know if there's a way of using a SELECT statement to get the same info as DESCRIBE or SHOW FIELDS, so as to limit the result set to only show the primary key field(s)?
I'm building a "generic" editing form, so I need to get a kwy value to use in my UPDATE statement, but the only way I can figure how to do it is to use DESCRIBE and then iterate through the resulting array, testing for "PRI", which seems... uh... stupid.
TIA.
--Dan