4,011
社区成员
发帖
与我相关
我的任务
分享
strSQL.Format(_T("insert into mytable([username],[visitelist],[remark])values( '%s ','%s ','%s ')"),strUsername,strList,strRemark);
if(mysql_real_query(mysql,(char*)(LPCTSTR)strSQL,(UINT)strSQL.GetLength())!=0)
{
printf("%s", mysql_error(MYSQL *mysql) );
printf("添加失败!");
}