sqlite 内存版
最后更新于:2022-04-02 02:14:34
[TOC]
## code
```
#include "mainwindow.h"
#include
#include
#include
#include
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QStringList drivers = QSqlDatabase::drivers();
foreach(QString driver,drivers){
qDebug()<< "driver "<=2 的记录的id项和name项的值
query.exec("select id,name from student where id >= 2");
while (query.next()) {
int value0 = query.value(0).toInt();
QString value1 =query.value(1).toString();
qDebug()<<"value0,value1 "<
';