Difference between revisions of "SET EXACT"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Determines how comparisons between two character expressions are performed
 
Determines how comparisons between two character expressions are performed
 
  
 
==Syntax==
 
==Syntax==
 
SET EXACT ON | OFF | (<expL>)
 
SET EXACT ON | OFF | (<expL>)
 
  
 
==See Also==
 
==See Also==
[[LEFT()]], [[LPAD()]], [[LTRIM()]], [[RIGHT()]], [[RPAD()]], [[RTRIM()]], [[SET PCEXACT]], [[SOUNDEX()]], [[SUBSTR()]], [[TRIM()]]
+
[[LEFT()]], [[LPAD()]], [[LTRIM()]], [[RIGHT()]], [[RPAD()]], [[RTRIM()]], [[SET STRCOMPARE]], [[SOUNDEX()]], [[SUBSTR()]], [[TRIM()]]
 
+
  
 
==Description==
 
==Description==
 
If SET EXACT is OFF, strings are compared up to the length of the shortest string.  If SET EXACT is ON, the strings compared must be an exact match in both characters and length.  By default, EXACT is OFF.
 
If SET EXACT is OFF, strings are compared up to the length of the shortest string.  If SET EXACT is ON, the strings compared must be an exact match in both characters and length.  By default, EXACT is OFF.
  
 +
Lianja v2.0
 +
By default, SET STRCOMPARE is ON in Lianja SQL Server, Lianja Cloud Server, Lianja App Builder and App Center.  To use SET EXACT OFF for partial string comparisons, SET STRCOMPARE should also be set OFF.
  
 
==Example==
 
==Example==
Line 24: Line 23:
 
set exact on
 
set exact on
 
// Lists only those people called "SMITH"
 
// Lists only those people called "SMITH"
list all for name = "SMITH"</code>
+
list all for name = "SMITH"
 
+
</code>
  
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Set_Commands|EXACT]]
 
[[Category:Set_Commands|EXACT]]
[[Category:Environment]]
 
[[Category:Environment Set Commands]]
 

Latest revision as of 10:27, 2 July 2015

Purpose

Determines how comparisons between two character expressions are performed

Syntax

SET EXACT ON | OFF | (<expL>)

See Also

LEFT(), LPAD(), LTRIM(), RIGHT(), RPAD(), RTRIM(), SET STRCOMPARE, SOUNDEX(), SUBSTR(), TRIM()

Description

If SET EXACT is OFF, strings are compared up to the length of the shortest string. If SET EXACT is ON, the strings compared must be an exact match in both characters and length. By default, EXACT is OFF.

Lianja v2.0 By default, SET STRCOMPARE is ON in Lianja SQL Server, Lianja Cloud Server, Lianja App Builder and App Center. To use SET EXACT OFF for partial string comparisons, SET STRCOMPARE should also be set OFF.

Example

set exact off
use patrons index events
// Lists all people beginning with "SMITH"
// SMITH, SMITHWAITE SMITHSON etc.
list all for name = "SMITH"
set exact on
// Lists only those people called "SMITH"
list all for name = "SMITH"