用VC开发,想从表中取出IP后列表,滤掉相同的ip
pSet->Open(CAccessLogSet::dynaset, _T("select distinct IpAddr from accesslog where IpAddr <>'""' "));
执行时,报“检索记录出错"
用select distinct * from accesslog where IpAddr <>'""'这样的语法居然就不报错,结果和select *相同
请问如何处理呢
pSet->Open(CAccessLogSet::dynaset, _T("select distinct IpAddr from accesslog where IpAddr <>'""' "));
执行时,报“检索记录出错"
用select distinct * from accesslog where IpAddr <>'""'这样的语法居然就不报错,结果和select *相同
请问如何处理呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货