会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你的男孩
博客园
首页
新随笔
联系
管理
订阅
随笔- 88 文章- 0 评论- 10 阅读-
25万
01 2022 档案
在数据库中查询以逗号分割的数据
摘要:return self::find() ->where(["is_del" => 0, "status" => 1]) ->andWhere('CONCAT(",", `user_category_id`, ",") REGEXP ",('. implode('|', $categoryIds) .
阅读全文
posted @
2022-01-26 16:56
你的男孩
阅读(354)
评论(0)
推荐(0)
编辑
公告
昵称:
你的男孩
园龄:
6年5个月
粉丝:
3
关注:
1
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
更多链接
随笔档案
2024年6月(1)
2024年1月(1)
2022年1月(1)
2021年12月(1)
2021年8月(1)
2021年6月(1)
2021年5月(1)
2021年4月(4)
2020年11月(1)
2020年5月(3)
2020年3月(4)
2020年2月(2)
2020年1月(1)
2019年12月(2)
2019年11月(7)
2019年10月(9)
2019年8月(15)
2019年7月(8)
2019年5月(5)
2019年4月(12)
2019年3月(8)
更多
阅读排行榜
1. vue项目出现Module not found: Error: Can't resolve 'stylus-loader'错误解决方案(41714)
2. mysql对表中数据根据某一字段去重(37630)
3. phpstorm2019激活码(11517)
4. cURL error 60: SSL certificate problem: unable to get local issuer certificate 解决方法(11298)
5. 清理 /dev/vda1 系统磁盘(10297)
评论排行榜
1. phpstorm2019激活码(3)
2. laravel框架——验证码(第一种方法)(2)
3. 数组中的stdClass Object如何访问(2)
4. docker安装elasticsearch和head插件(1)
5. mysql对表中数据根据某一字段去重(1)
推荐排行榜
1. docker安装elasticsearch和head插件(2)
2. 谷歌浏览器安装jsonview(2)
3. PHPstorm 永久更新(1)
4. 解决composer install遇到:Your requirements could not be resolved to an installable set of packages(1)
5. tp3.2框架关闭日志记录(1)
>
最新评论
1. Re:docker安装elasticsearch和head插件
666
--江南之南
2. Re:mysql对表中数据根据某一字段去重
select * from 表名 group by 根据哪一个字段(简称字段) having count(字段) > 1,这个语句已经执行报错了,分组函数group by 字段,select要带该字段...
--啊哈小民
3. Re:phpstorm2019激活码
@nooned 你这要钱的解压码。。行吧...
--你的男孩
4. Re:phpstorm2019激活码
感谢大神分享,鄙人发现一新方法,亲测可破解激活phpstorm2020.3/2020.2等所有版本:
--nooned
5. Re:phpstorm2019激活码
谢谢啦 感谢分享,我的2020 2.3昨天已经激活 我整理了一个文档 上边有具体操作步骤 还有一些常见的错误 大家需要的话可以看一下...
--jojocoder
点击右上角即可分享