18.4.  Review Questions

[ fromfile: database-questions.xml id: database-questions ]

  1. Which database is included with Qt on all platforms?

  2. How can you determine what databases are supported by your version of Qt?

  3. What is QSqlDatabase is an abstraction for, a file, connection, user, or table?

  4. What is the difference between a DDL query and a regular query?

  5. Why are prepared queries preferred over regular queries?

  6. What would be a better name for the class, QSqlDatabase?

  7. If the database driver's hasFeature(QSqlDriver::PreparedQueries) reports false, can you use prepared queries?

  8. Can a non-DDL query modify table rows?