当前位置:网站首页>tp5 where查询数据库中的某个字段是否包含某个值,不用like的方法,模糊查询
tp5 where查询数据库中的某个字段是否包含某个值,不用like的方法,模糊查询
2022-06-29 18:29:00 【杭杭爸爸】
tp5 where查询数据库中的某个字段是否包含某个值,不用like的方法,模糊查询
//TP5 find_in_set用法
$where['parent_store_id'] = $this->parent_store_id;
$where['status'] = 'up';
$where['type'] = 'normal';
$where['deletetime'] = NULL;
$data[$k]['children'] = db('shopro_goods')
->where($where)
->where('find_in_set(8,category_ids)')
->order('weigh asc')->select();

边栏推荐
- 1. 使用STM32CubeMX建立STM32G030C8T6项目工程
- 第02章_MySQL的数据目录
- Understanding of strong caching and negotiation caching
- Adobe Premiere foundation - opacity (mixed mode) (XII)
- 第三方工具与框架集成
- Meta agent model can be migrated to resist attacks
- Request header field XXXX is not allowed by access control allow headers in preflight response
- Redis(一)--Redis入门(1)--Redis介绍、安装与启动、常用配置
- 2022.6.29-----leetcode. five hundred and thirty-five
- Amazing pandaverse:meta "borderless, to activate fashion attributes in the new journey of 2.0
猜你喜欢

JDBC Codes connexes

Anaconda installs and configures jupyter notebook remote

数据仓库模型分层ODS、DWD、DWM实战

jdbc_相關代碼

Tag filtering and SQL filtering of rocketmq

Apache InLong百万亿级数据流处理

信息系统项目管理师---第七章项目成本管理历年考题

龙canvas动画

Sword finger offer 34 Path DFS method for binary tree neutralization

These advantages of the Institute are really fragrant! The landing rate is still very high!
随机推荐
C Primer Plus Chapter 12_ Storage categories, links, and memory management_ Codes and exercises
Shandong University project training (VI) Click event display line chart
Apache InLong百万亿级数据流处理
Shandong University project training (VII) add navigation bar to select city
These advantages of the Institute are really fragrant! The landing rate is still very high!
行程卡“摘星”热搜第一!刺激旅游产品搜索量齐上涨
Fluent's MSH grid learning
The 8th "Internet +" competition - cloud native track invites you to challenge
防汛救援便携式应急通信系统解决方案
[tcapulusdb knowledge base] tcapulusdb operation and maintenance doc introduction
jdbc_ Related codes
svg画圆路径动画
面试题 10.10. 数字流的秩
idea怎么使用?
第八届“互联网+”大赛 | 云原生赛道邀你来挑战
Data-* attribute usage
UnrealEngine插件中使用protobuf 链接mysql
MySQL enterprise development specification
Meta agent model can be migrated to resist attacks
数据仓库模型分层ODS、DWD、DWM实战