Difference between revisions of "UNIQUE()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 15: Line 15:
  
 
==See Also==
 
==See Also==
[[INDEXKEY()]], [[KEY()]], [[INDEXORDER()]], [[SET UNIQUE ON]], [[INDEX]]
+
[[INDEXKEY()]], [[KEY()]], [[INDEXORDER()]], [[SET UNIQUE]], [[INDEX]]
  
  

Revision as of 14:48, 20 March 2009

UNIQUE()

Class

Indexing


Purpose

Function to test for unique indexes


Syntax

UNIQUE(<expN>)


See Also

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


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

Recital Database Server, Recital Mirage Server, Recital Terminal Developer