Foxtable(狐表)用户栏目专家坐堂 → 【求助】模糊查询相关的问题?


  共有2350人关注过本帖树形打印复制链接

主题:【求助】模糊查询相关的问题?

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110574 积分:562760 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/2/23 12:02:00 [显示全部帖子]

Dim txt As String = "A,B,C"
Dim cls() As String = {"第一列","第二列","第三列"}
Dim filter As String = "1=2"
Dim txts() As String = txt.Split(",")
For i As Integer = 0 To txts.Length - 1
    filter = filter & " or " & cls(i) & " like '%" & txts(i) & "%' "
Next
Output.Show(filter )

 回到顶部