Difference between revisions of "SYSRESULTSET"

From Recital Documentation Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SYSRESULTSET=
 
 
 
==Class==
 
SQL Applications
 
 
 
 
==Purpose==
 
==Purpose==
 
Used to return the singleton result from any Recital expression
 
Used to return the singleton result from any Recital expression
Line 11: Line 4:
  
 
==See Also==
 
==See Also==
[[DATA TYPES]], [[SQL SELECT|SELECT]], [[SYSTEM TABLES]]
+
[[SQL Data Types|DATA TYPES]], [[SQL SELECT|SELECT]], [[SQL System Tables|SYSTEM TABLES]]
  
  
Line 37: Line 30:
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
EXEC SQL
+
select set("EXCLUSIVE") as Excl, time() as Time from sysresultset
set("EXCLUSIVE") as Excl, time() as Time from sysresultset;
+
 
</code>
 
</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:System Tables]]
 
[[Category:System Tables]]

Latest revision as of 15:57, 22 December 2009

Purpose

Used to return the singleton result from any Recital expression


See Also

DATA TYPES, SELECT, SYSTEM TABLES


Description

System Tables are system defined read-only tables. You can query these tables using the SELECT statement.

The SYSRESULTSET system table is used to return the singleton result from any Recital expression.


Column Data Type Width
<expression1> <result1 type> <result1 width>
<expression256> <result256 type> <result256 width>


An error will occur if any expression is specified that returns more than one result.


Example

select set("EXCLUSIVE") as Excl, time() as Time from sysresultset


Products

Recital, Recital Server