mysql_autocommit(con,0);
	sprintf_s(tmp, "insert into platid(platid, platname) values(12389, "hmz hello!");");
	rt=mysql_real_query(con,tmp,strlen(tmp));
	if (rt)
	{
		printf("Error making query: %s !!!\n",mysql_error(con));
	} 
	else
	{
		printf("%s executed!!!\n",tmp);
	}
	mysql_rollback(con);
不知道为什么,没有回滚的效果
解决方案
10
直接执行 rollback
10
auto commit  状态是什么?
 
                    


