.isPrimaryKey()

Previous Next

Finds out if this column is a primary key column that is not also a foreign key in a relationship.

Returns a boolean.

Syntax

.isPrimaryKey()

This function returns true if the column is a primary key column that is not also a foreign key in a relationship, false otherwise.

 

Example

var isKey = $.udbMeta('EMP').cols('EMPLOYEE_ID').isPrimaryKey();