nxc2018 发表于 2023-8-17 10:01:25

Qt不支持同时创建两个表吗?

为什么这样子会创建数据库表失败,Qt不支持同时创建两个表吗?

DiligentMosquit 发表于 2023-10-21 17:26:05

你可以查下qt帮助手册关于bool QSqlQuery::exec(const QString &query)的描述:For SQLite, the query string can contain only one statement at a time.If more than one statement is given, the function returns false.明确说明了查询字符串一次只能包含一条语句。你分成两条语句创建不可以了吗
页: [1]
查看完整版本: Qt不支持同时创建两个表吗?