条件查询方法 json格式存储 ,like查询无效

浏览:176 发布日期:2019/04/10 分类:ThinkPHP5专区
mysql存储more字段数据:
{"photos":[{"url":"upload\/20190228\/d9d5b053727a0bd49b1d15b599dc335d.jpg","name":"含苞"},{"url":"upload\/20190228\/06ce0c528d811301a76350ecfb8a9968.jpg","name":"飞舞"},{"url":"\/upload\/20190228\/5ca5053cc1ca0613abb28956d34d4aa3.jpg","name":"千年满花"}],"thumbnail":"upload\/20190228\/d9d5b053727a0bd49b1d15b599dc335d.jpg"}


Db::table('think_user')
->where('more','like','%more%')
->select();

最佳答案
评论( 相关
后面还有条评论,点击查看>>