examples:

from sqlalchemy import func

project_list = ['platform', 'vip']
content = 'this is test text'

r = session.query(Project).filter(Project.name.in_(project_list))
r.update({'change_log': func.concat(Project.change_log, content)}, 
synchronize_session='fetch')
session.commit()
session.close()



r has two return objects, but only platform updates.Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to