MFC中那个函数可以执行select * from table where name = 张三; table为表名。然后可以得到张三所有信息。
张三
http://blog.csdn.net/hcnetbee/article/details/53377001这里例子更详细
http://blog.csdn.net/yuzhiyun3536/article/details/53223081
mysql_query(&m_sqlCon, "select xxx from xxx")