pkey(table)
name of table.
Name of field which is the primary key of the table.
pkey() method returns the primary key of a table. Note that this raises an exception if the table does not have a primary key.