部分代码如下
//创建表
string sql=" ";

sql = "CREATE TABLE IF NOT EXISTS `t_image` (\`id` int AUTO_INCREMENT,\`name` varchar(1024),\`path` varchar(2046),\`size` int,\PRIMARY KEY(`id`))";
int aa = mysql_query(&mysql, string(sql).c_str());
if (aa != 0)
{
cout << "mysql_query_failed" << mysql_error(&mysql) << endl;
}
具体报错如下


