mysql 查询json字符串条件

SELECT DATEDIFF(JSON_UNQUOTE(JSON_EXTRACT(content,'$.departuretime')),NOW()) AS daysnum,id,content->'$.title' AS title
FROM tablename
WHERE `type` = 2 
AND (DATEDIFF(JSON_UNQUOTE(JSON_EXTRACT(content,'$.departuretime')),NOW())+ JSON_UNQUOTE(JSON_EXTRACT(content,'$.plandays'))) >-1

;

上一篇:汇编语言实验5(王爽)


下一篇:马尔科夫决策过程基本概念