以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  SQL中执行函数加()和不加()有什么区别?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=158669)

--  作者:jiterp
--  发布时间:2020/11/28 15:25:00
--  SQL中执行函数加()和不加()有什么区别?
Dim A As WinForm.CheckedComboBox = e.Form.Controls("CheckedComboBox1")
Dim cmd As New SQLCommand
cmd.C
cmd.CommandText = "select name fro m {sy_abs} "
A.ComboList = cmd.ExecuteReader().GetComboListString("name")

上面代码中
A.ComboList = cmd.ExecuteReader().GetComboListString("name")  改成
A.ComboList = cmd.ExecuteReader.GetComboListString("name")

执行结是一样,这两个有什么区别?

--  作者:有点蓝
--  发布时间:2020/11/28 16:10:00
--  
没有区别。