Код: Выделить всё
sql_tmpl = """delete from Data where id_data in (:iddata) """
params = {
'iddata':[1, 2,3 4],
}
# 'session' is a session object from SQLAlchemy
self.session.execute(text(sql_tmpl), params)
Код: Выделить всё
NotSupportedError: (NotSupportedError) ('Python type list not supported. param=1', 'HY097')
Подробнее здесь: https://stackoverflow.com/questions/131 ... sqlalchemy
Мобильная версия