2,209
社区成员
发帖
与我相关
我的任务
分享
try
{
CString str_temp;
str_temp.Format(_T(" values('%f','%f','%f','%f','%f','%f','%d','%d','%d','%d','%d','%d')"),fData[0],fData[1],fData[2],fData[3],
fData[4],fData[5],t.GetYear(),t.GetMonth(),t.GetDay(),t.GetHour(),t.GetMinute(),t.GetSecond());
str_temp="insert into "+m_strTableName+str_temp;
//插入一笔记录
m_Sqlite3db.execDML(str_temp);
}
catch(CppSQLite3Exception ex)
{
AfxMessageBox(ex.errorMessage());
}