1.几条数据中找到你好,并且显示
第一条数据为:你好吗?
第二条数据:你好,阿姨!
第三条数据:hello,你好!
表名为test,数据字段为str
select * from test concat(',',`str`,',') like '%,你好,%';
得到的数据则为第二条数据和第三条数据!
注:concat连接字符串。
1.几条数据中找到你好,并且显示
第一条数据为:你好吗?
第二条数据:你好,阿姨!
第三条数据:hello,你好!
表名为test,数据字段为str
select * from test concat(',',`str`,',') like '%,你好,%';
得到的数据则为第二条数据和第三条数据!
注:concat连接字符串。
上一篇:CSRF/XSRF:跨站请求伪造
下一篇:ecshop二次开发指南
案例学Python:filter()函数的用法,高级!
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M