UNIQUE()

From Lianjapedia
Revision as of 11:10, 4 February 2013 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to test for unique indexes

Syntax

UNIQUE(<expN>)

See Also

INDEX, INDEXKEY(), INDEXORDER(), KEY(), SET UNIQUE

Description

The UNIQUE() function returns .T. if the specified index <expN> is unique, and .F. if it is not unique. <expN> is the index number from 0 to 20. If zero is specified then UNIQUE() tests the master index. For tagged multiple indexes, only the master index can be tested.

Example

use accounts
index on name to name unique
? unique(0)
.T.

Products

Lianja, Lianja Server