
JSON_ConTAINS(json_doc, val[,path]):
from sqlalchemy import func# JSON_ConTAINS returns 0 or 1, not found or found. Not sure if MySQL# likes integer values in WHERe, added == 1 just to be safesession.query(Story).filter(func.json_contains(Story.section_ids, X) == 1).all()
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)