sql,SELECT * FROM table WHERE column LIKE '%' || :variable || '%';,
`,,这里,
:variable 是你要查询的变量,
'%' || :variable || '%' 表示在变量前后添加通配符
%` 来进行模糊匹配。sql,SELECT * FROM table WHERE column LIKE '%' || :variable || '%';,
`,,这里,
:variable 是你要查询的变量,
'%' || :variable || '%' 表示在变量前后添加通配符
%` 来进行模糊匹配。Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.