SqlAlchemy use

(A) query

image = session.query(ImageData.image_type, count('*')).filter(ImageData.image_type.like(code)).group_by(ImageData.image_type).all()

 

Guess you like

Origin www.cnblogs.com/owenqing/p/11204523.html