Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

flask sqlalchemy update row

admin = User.query.filter_by(username='admin').first()
admin.email = 'my_new_email@example.com'
db.session.commit()

user = User.query.get(5)
user.name = 'New Name'
db.session.commit()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #sqlalchemy #update #row
ADD COMMENT
Topic
Name
7+9 =