This page in other versions: Unsupported versions: 7.1 / 7.2 / 7.3

pkey

Name

pkey -- return the primary key of a table

Synopsis

pkey(table)

Parameters

table

name of table.

Return Type

string

Name of field which is the primary key of the table.

Description

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

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group