以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  SQLSelect出问题了吗?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=86687)

--  作者:智友软件工作室
--  发布时间:2016/6/23 11:43:00
--  SQLSelect出问题了吗?
    drs = DataTables("组织关系").SQLSelect("[主管] = \'" & _username & "\'","销售")
    For Each dr123 As DataRow In drs
输出没有内容
    Next
    drs = DataTables("组织关系").Select("[主管] = \'" & _username & "\'","销售")
    For Each dr123 As DataRow In drs
输出有内容
    Next

--  作者:智友软件工作室
--  发布时间:2016/6/23 11:48:00
--  
我知道了
    drs = DataTables("组织关系").SQLSelect("[主管] = \'" & _username & "\'","","销售")
    For Each dr123 As DataRow In drs
输出没有内容
    Next
在条件后面要加上“”