【发布时间】:2019-06-16 15:55:18
【问题描述】:
您好,我在从 Json 列中提取行时遇到问题。
下面是 json 数据,如果我想从值中提取行,请说 MH。
以下数据位于每一行中。所以我需要一个 codeigniter 查询,如果我查询这个适用性列的 MH 需要获取行。
你能帮我解决这个问题吗:
下面是JSON数据:["AP","AR","AS","BR","CT","GA","GJ","HR","HP","JK","JH","KA","KL","MP","MH","MN","ML","MZ","NL","OR","PB","RJ","SK","TN","TG","TR","UT","UP","WB","AN","CH","DN","DD","DL","LD","PY"]
$this->select('guid, applicability, name, type, description,
service_type, scheme_type, mini_description, tags, benefit');
$this->join('schemes_lang_1', 'schemes_lang_1.scheme_id=scheme_1.id', 'left');
$this->where('lang', $lang);
$this->where('status', $status);
$this->where('scheme_1.pp_enabled', 1);
$this->where('scheme_1.applicability', 'MH');
return $this->findAll();
表结构如下。
【问题讨论】:
标签: php mysql postgresql codeigniter