表结构如下
之后Itemdate = PointResult.query.filter(PointResult.rept_aud_item.ilike("%"+item_name+"%")).order_by(desc('log_id')).slice((page - 1) * limit, limit * page)
进行模糊查询,被告知没有like方法
因为 rept_aud_item 是表中的一个字段,但是PointResult.rept_aud_item确实一个字符串。
想问下各位,平时sqlalchemy 模糊查询你都用的什么方式呀