以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 为什么事务过程中,不能用SqlFind? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=150677) |
-- 作者:chen37280600 -- 发布时间:2020/6/4 15:02:00 -- 为什么事务过程中,不能用SqlFind? Dim cmd As New SqlCommand() cmd.C \'cmd.BeginTransaction() cmd.CommandText="Sele ct * from PropertyBuyInfo where 1=2" Dim dtSou As DataTable = cmd.ExecuteReader(True) Dim fr As DataRow = dtSou.SQLFind("ID=\'95d0620e-54e7-41f7-86c4-ad10a1f95963\'") If fr IsNot Nothing Then output.show(1) End If \'cmd.Commit() 结果是1 ---------------------------- Dim cmd As New SqlCommand() cmd.C cmd.BeginTransaction() cmd.CommandText="Sele ct * from PropertyBuyInfo where 1=2" Dim dtSou As DataTable = cmd.ExecuteReader(True) Dim fr As DataRow = dtSou.SQLFind("ID=\'95d0620e-54e7-41f7-86c4-ad10a1f95963\'") If fr IsNot Nothing Then output.show(1) End If cmd.Commit() 结果是空 想问下为啥? |
-- 作者:有点蓝 -- 发布时间:2020/6/4 15:29:00 -- 已反馈。等下次更新 |
-- 作者:chen37280600 -- 发布时间:2020/6/4 15:56:00 -- 居然是个bug··· |