Eve SQLAlchemy查询连接

时间:2015-06-05 17:15:43

标签: python sqlalchemy eve

我可以http://127.0.0.1:5000/people?where={"lastname":"like(\"Smi%\")"}获取people.lastname LIKE "Smi%"

如何连接两个条件,例如city = XX和pop< 1000?

1 个答案:

答案 0 :(得分:2)

你做的很简单:

http://127.0.0.1:5000/people?where={"city":"XX", "pop":"<1000"}