Difference between revisions of "RELATION()"
From Lianjapedia
(→Products) |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return table-linking expression | Function to return table-linking expression | ||
− | |||
==Syntax== | ==Syntax== | ||
RELATION(<expN>) | RELATION(<expN>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ | + | [[CREATE VIEW]], [[DBRELATION()]], [[DBRSELECT()]], [[SET RELATION]], [[TARGET()]], [[USE]] |
− | + | ||
==Description== | ==Description== | ||
− | The RELATION() function is synonymous with the DBRELATION() function. The RELATION() function returns the linking expression of a specified relation in the current workarea. The <expN> specifies the position of the desired linking expression from the list of previously defined relations | + | The RELATION() function is synonymous with the DBRELATION() function. The RELATION() function returns the linking expression of a specified relation in the current workarea. The <expN> specifies the position of the desired linking expression from the list of previously defined relations. The RELATION() function always returns a character string in lower case. If there is no linking expression defined for the <expN> selected, a null string will be returned. |
− | + | ||
==Example== | ==Example== | ||
Line 26: | Line 22: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 11:00, 9 February 2012
Contents
Purpose
Function to return table-linking expression
Syntax
RELATION(<expN>)
See Also
CREATE VIEW, DBRELATION(), DBRSELECT(), SET RELATION, TARGET(), USE
Description
The RELATION() function is synonymous with the DBRELATION() function. The RELATION() function returns the linking expression of a specified relation in the current workarea. The <expN> specifies the position of the desired linking expression from the list of previously defined relations. The RELATION() function always returns a character string in lower case. If there is no linking expression defined for the <expN> selected, a null string will be returned.
Example
use shows in 2 index pcode use patrons in 1 set relation to patron_code into shows ? relation(1) patron_code ? target(1) 2