Difference between revisions of "UNIQUE()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to test for unique indexes | Function to test for unique indexes | ||
− | |||
==Syntax== | ==Syntax== | ||
UNIQUE(<expN>) | UNIQUE(<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
[[INDEX]], [[INDEXKEY()]], [[INDEXORDER()]], [[KEY()]], [[SET UNIQUE]] | [[INDEX]], [[INDEXKEY()]], [[INDEXORDER()]], [[KEY()]], [[SET UNIQUE]] | ||
− | |||
==Description== | ==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. | 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== | ==Example== | ||
Line 22: | Line 18: | ||
.T. | .T. | ||
</code> | </code> | ||
− | |||
==Products== | ==Products== | ||
Line 28: | Line 23: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category: | + | [[Category:Cursor Functions]] |
− | [[Category: | + | [[Category:Search Functions]] |
Latest revision as of 11:10, 4 February 2013
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