This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
SQL End selection
|
SQL End selection -> Function result | ||||||||
Parameter | Type | Description | ||||||
Function result | Boolean |
![]() |
Result set boundaries reached | |||||
The SQL End selection command is used to determine if the boundaries of the result set have been reached.
The code below connects to an external data source (Oracle) using the following parameters:
C_TEXT(vName)
SQL LOGIN("TestOracle";"scott";"tiger")
If(OK=1)
SQL EXECUTE("SELECT ename FROM emp";vName)
While(Not(SQL End selection))
SQL LOAD RECORD
End while
SQL LOGOUT
End if
This code will return in the 4D vName variable the emp names (ename) stored in the table named emp.
Product: 4D
Theme: SQL
Number:
821
Created: 4D 2004
4D Language Reference ( 4D v20 R7)