【发布时间】:2017-10-14 04:35:42
【问题描述】:
我的问题是在我的表中存储了 json 编码值,例如
field Name : offer_promotion
[{"name":"sample promotion","price":"1555","expdate":"2017-05-15","shortdesc":"test","longdesc":"test"}]
现在我想为选择记录编写查询,例如, 例如:
$this->db->where('offer_promotion', "name":"sample promotion");
如何编写这个查询?
【问题讨论】:
-
stackoverflow.com/questions/22544195/… 检查 Erman Belegu 的答案。
标签: php mysql json codeigniter