[問題] 傻眼了...室友大家都無解
程式碼:
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
08/02 13:56, 1F
推
08/02 20:16, , 2F
08/02 20:16, 2F
推
08/03 00:43, , 3F
08/03 00:43, 3F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):