![]() ![]() In addition to QSqlDatabase and QSqlQuery, the SQL API layer is supported by QSqlError, QSqlField, QSqlIndex, and QSqlRecord. Database interaction is achieved by using the QSqlQuery class. Connections are made using the QSqlDatabase class. These classes provide access to databases. ![]() See SQL Database Drivers for more information. This layer provides the low-level bridge between the specific databases and the SQL API layer. 这包括类QSqlDriver、QSqlDriverCreator、QSqlDRIVECreatorBase、QSqldrivePlugin和QSqlResult。 This comprises the classes QSqlDriver, QSqlDriverCreator, QSqlDriverCreatorBase, QSqlDriverPlugin, and QSqlResult. The SQL classes are divided into three layers: Means of executing and manipulating SQL statementsĮditable data model for a single database table, with foreign key supportĪbstract interface for accessing data from specific SQL databasesĮditable data model for a single database table Manipulates the fields in SQL database tables and viewsįunctions to manipulate and describe database indexes Template class that provides a SQL driver factory for a specific driver type These classes provide access to SQL databases.Ĭontains miscellaneous identifiers used throughout the Qt SQL moduleĪbstract base class for accessing specific SQL databases A standard text covering SQL databases is An Introduction to Database Systems (7th Ed.) by C. Although the QSqlTableModel class provides an interface to database browsing and editing that does not require a knowledge of SQL, a basic understanding of SQL is highly recommended. ![]() You should be able to understand simple SELECT, INSERT, UPDATE, and DELETE statements. This overview assumes that you have at least a basic knowledge of SQL. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |