MYSQL新手
我的 SQL/ASP:
sQuery = "SELECT ID, Shop, Make, COUNT(*) AS iTotal From Test.Makes WHERE Shop = " & s & " GROUP BY Make ORDER BY Make ASC;"
该表包含 1 行 ID=1, Shop=1, Make=Test
什么时候s = 1
,iTotal = 1
一切运行正常,什么时候s = 0
,iTotal 使页面崩溃,错误为“80020009”
有没有办法记录 0 记录数
IF iTotal > 0 然后执行此操作,否则执行此操作