讨论数量:
如果你的字段是这种格式
{
"id":1,
"type":"1",
"label":"测试1"
}
可以这样:
- 查询
->where('post->id', 1)->where('post->type', 2)
- 修改
->update(['post->id' => 3, 'post->type' => '3'])
如果你的字段是这种格式
{
"id":1,
"type":"1",
"label":"测试1"
}
可以这样:
->where('post->id', 1)->where('post->type', 2)
->update(['post->id' => 3, 'post->type' => '3'])
推荐文章: