这是一个事物表的数据列中的
JSON值:
{a: [{b: 1},{b: 2}]}
select * from things where data @> '{ "a": [{"b": 1}] }';
我知道我们可以使用带有Laravel:https://laravel.com/docs/5.4/queries#json-where-clauses的JSON where子句运行Laravel查询.我可以这样写:
Thing::where('a->c','foobar');