Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sqlalchemy import update
- @app.route('/testupdate/')
- def testupdate():
- stmt = update(user).where(user.id==3).values(email='a@b')
- db.session.commit()
- return 'done'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement