1.字符集设置
数据库uft8, VS2015 unicode,要先设置字符集
strcpy_s(sql, "set names utf8");
int ret = mysql_query(connect, sql);
if (ret)
{
//showError(mysql_error(connect));
return mysql_errno(connect);
}
1.字符集设置
数据库uft8, VS2015 unicode,要先设置字符集
strcpy_s(sql, "set names utf8");
int ret = mysql_query(connect, sql);
if (ret)
{
//showError(mysql_error(connect));
return mysql_errno(connect);
}