本文介绍了SQL查询字段无结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下代码返回"0",值应为10.语法是否正确?
The following code is returning a "0", the value should be 10. Is it the syntax?
//Query Max Field
int MX;
(mysql_real_connect(conn,"urlock.db.5513143.hostedresource.com","urlock","Admin1234","urlock",0,NULL,0) !=0);
MX = mysql_query(conn,"SELECT Max FROM tblURL WHERE IP = ''192.168.1.1'' And Status = ''Active''");
cout << MX <<endl;
system("PAUSE");
推荐答案
这篇关于SQL查询字段无结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!