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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.