Version
Database Selection
Use the DB_SELECTION class to select data from the database. Once you have selected the data, you can access it with convenience using adaptative EiffelStore structures.
DB_SELECTION enables your application to get database content using SQL 'select' queries:
- You can carry out 'select' queries in an intuitive way using directly the SQL language:
selection: DB_SELECTION
-- Selection tool
...
create selection.make
selection.set_query ("select * from CONTACTS where firstname = 'John'") -- Set query text
selection.execute_query -- Execute query
... -- Process query results
selection.terminate -- Clear database cursor
- You can also customize your selection using bind variables .