目前我的应用程序只支持SQLite数据库,但我想同时支持SQLite和MySQL数据库,所以我正在测试SOCI library以查看它是否符合我的需求。然而,尽管examples and documentation,我不知道法国国际法院如何处理准备好的陈述。 当使用SQLite C API,你准备声明: sqlite3_stmt* statement;
sqlite3_prepare_v2(da
Im使用soci和C++来访问我的数据库。是否有可能通过某种方式修改以下表达式,以获取由该表达式添加的行的新主键? *dbSession << "insert into myTable(myRow) values (:myVal)", soci::use(myVal);
例如, long newID = *dbSession << "insert into myTable(myRow) val