[問題] 傻眼了...室友大家都無解

看板Web_Design作者時間18年前 (2007/08/02 03:06), 編輯推噓3(300)
留言3則, 3人參與, 最新討論串1/2 (看更多)
程式碼: strSQL2 = "select count(*) from Order_detail where and account ='a' " objcmd2 = New SqlCommand(strSQL2, objCon) num = objcmd2.ExecuteNonQuery if num =0 then ...... end if 傻眼的是 我在DB下SQL指令 就是上面那串 select count(*) from Order_detail where and account ='a' 顯示出有0筆 可是我卻跑步進去那個程式if內的動作 後來利用中斷點查 我的 num竟然是-1 ???????? 請大家幫我解惑吧 天阿...3點了.... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.232.8.164 ※ 編輯: tstanly 來自: 125.232.8.164 (08/02 03:07) ※ 編輯: tstanly 來自: 125.232.8.164 (08/02 03:07)

08/02 13:56, , 1F
IF後面的BOOL判斷式不是要 == 嗎 O O?
08/02 13:56, 1F

08/02 20:16, , 2F
是 = 沒錯
08/02 20:16, 2F

08/03 00:43, , 3F
asp 是 "="
08/03 00:43, 3F
文章代碼(AID): #16iDcrwA (Web_Design)
文章代碼(AID): #16iDcrwA (Web_Design)