1
awanabe 2015-02-13 11:15:21 +08:00 1
|
2
timonwong 2015-02-13 11:25:03 +08:00 1
from sqlalchemy.sql.expression import func
session.query(Post).filter(func.find_in_set('10', Post.c.tag_id)) |
4
timonwong 2015-02-13 11:31:46 +08:00 1
补充
from sqlalchemy import func 就可以了,一回事。 http://docs.sqlalchemy.org/en/rel_0_9/core/sqlelement.html#sqlalchemy.sql.expression.func |