Php mysql选择列包含json_encode数组名称值= var的行

时间:2017-03-04 13:51:56

标签: php mysql

我有一个带有这些值的列json_encode数组:

 id  | months
  1  | {"january":"480.00","february":"480.00".....}
  2  | {"january":"500.00","february":"480.00".....}
  2  | {"january":"700.00","february":"480.00".....}

WHERE months->january = '480.00';

我会得到january = 480.00

的所有行

返回ID 1

0 个答案:

没有答案