SQLAlchemy's not in

Friday, June 10, 2011

from sqlalchemy import not_ 
session.query(Region).filter(not_(Region.id.in_( (1,2,3) )))

This entry was tagged Python and SQLAlchemy

comments powered by Disqus

© 2009-2013 lxneng.com. All rights reserved. Powered by Pyramid

go to Top