QT通过ODBC连接数据库SQL Server 2008,进行数据插入时遇到的问题: 先把数据存入变量中,如何使用变量进行插入?插入语句该怎么写? QSqlQuery query(db); query.exec("insert into device values('"+datetime+"','"+splantNum+"','"+sdeviceNum+"','"+stemper+"','"+spress+
Cpp代码 QString i = "iTest"; // current file's number QString total = "totalTest"; // number of files to process QString fileName = "fileNameTest"; // current file's name QString status = QString("Proc