获取xml文档中存储过程并执行(mysql)

xml.Load("sql.xml");
xml.ResetMainPos();
int i=0;
while(xml.FindChildElem("sqls"))
{
	xml.IntoElem();
	xml.FindChildElem("sql");
	strsql[i]=xml.GetChildData();
	i++;
	xml.OutOfElem();
}
count=i;
dat=mysql_init(NULL);
mysql_real_connect(dat,svr,usr,pwd,db,0,NULL,0);
mysql_query(dat,"set names gbk");
// if(mysql_real_query(dat,strsql,(unsigned long)strlen(strsql)))
// AfxMessageBox("创建表成功!");
int flag=0;
for (i=0;i

你可能感兴趣的:(Visual,C++,6.0)