Skip to main content
Version: 10.1

$.udbMeta(ds).keyCols()

note

This article is about the keyCols() function of the DataSourceMetaContainer object. See also Rows.cols().

$.udbMeta(ds).keyCols()

Gets a list of key columns that have the specified name(s). If no names are specified, all key columns are returned.

Returns a collection of columns.

Syntax

$.udbMeta( *ds* ).keyCols( *columns* )

The required ds is a data source selector.

The optional columns is a string or an array of strings identifying one or more key columns. If columns is not specified, all key columns in scope are returned.

Examples

$.udbMeta('EMP').keyCols();
$.udbMeta('EMP').keyCols('EMPNO');
$.udbMeta('EMP').keyCols(['EMPNO','NAME']);