Online Eiffel Documentation |
Documentation Home > Class Libraries > EiffelStore > EiffelStore Content > EiffelStore Interface Layer |
EiffelStudio |
Database Selection |
Use the DB_SELECTION class to select data from the database. Once you have selected the data, you canaccess it with convenience using adaptative EiffelStore structures.
Note: Take a look at theDatabase/Eiffel objects Coupling if you need information about your database structure.
DB_SELECTION enables your application to get database content using SQL 'select' queries:
selection: DB_SELECTION ... create selection.make selection.set_query ("select * from CONTACTS where firstname = 'John'") selection.execute
Tip: Always check the database status for errors after your 'select' query.
See Also
Binding variables in a database query.
Coupling database objects with Eiffel objects.
Accessing selected data from the database.
Copyright 1993-2006 Eiffel Software. All rights reserved. |