以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如何实现根据name1的值 来对应检索到Navigation 表中name包含 证书字样的所有数据  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=179642)

--  作者:cnsjroom
--  发布时间:2022/9/1 11:02:00
--  如何实现根据name1的值 来对应检索到Navigation 表中name包含 证书字样的所有数据

biaDim name1 As String ="证书"
Dim cmd1 As New SQLCo mmand
cmd1.Connectio nName = "eWeb"
cmd1.Comma ndText = "sele ct * from Navigation where name = \'" & name1.Replace("\'","").Replace(",","") & "\' and type = 4"

 

如何在select语句中进行模糊检索

Navigation 表中有name  type两个字段

对应数据行如下:

                      证书1    4

                      证书2    4

                      证书3    4

                      证书4    4

                      证书5    4

如何实现根据name1的值 来对应检索到Navigation 表中name包含 证书字样的所有数据


--  作者:有点蓝
--  发布时间:2022/9/1 11:16:00
--  
包含使用like,看看like的用法:http://www.foxtable.com/webhelp/topics/0102.htm