MYSQL新手MYSQL,COUNT = 0的錯誤
我的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,網店= 1,使=測試
當s = 1
, iTotal = 1
和一切運行良好,當s = 0
,iTotal崩潰頁面錯誤'80020009'
有沒有一種方法來記錄0記錄數
IF ITOTAL> 0,則爲此做別的是
謝謝你。 我很習慣rst.recordcount –