Skip to main content
Version: 10.1

ColsMeta.isPrimaryKey()

note

This article is about the isPrimaryKey() function of the ColsMeta object.

ColsMeta.isPrimaryKey()

Finds out if a specified column is a primary key column.

Returns a boolean.

Syntax

$.udbMeta( *ds* ).cols( *cols* ).isPrimaryKey()

The optional ds is a data source selector. The optional cols is a column selector.

Example

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