| 4D v15.4SQL End selection | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v15.4
 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 ifThis 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 v15.4)
	
	
	
	4D Language Reference ( 4D v15)
	
	
	
	
	
	
	
	4D Language Reference ( 4D v15.3)
	
	
 Add a comment
Add a comment