网站首页
编程语言
数据库
系统相关
其他分享
编程问答
addDatabase
2024-08-27
Qt5.14.2 操作PostgreSQL 记录
在Qt5.14.2中操作PostgreSQL数据库.#include<QSqlDatabase>#include<QSqlQuery>#include<QSqlError>#include<QDebug>//初始化数据库连接QSqlDatabasedb=QSqlDatabase::addDatabase("QPSQL");//qDebug()<<"aaaa"