请教各位大神一个python中使用SQLalchemy模块的问题
python中用sqlalchemy模块连接数据库表建立mapping关系后
test_record = test_session.query(test_attachment).filter(test_attachment._id == '56').all()[0]
print test_record
test_record._fileName = 'testfile'
test_session.update(test_record) #操作失败。。。
#??对象修改后,除了用update语句
#??怎么更新数据到数据库。。。
test_session.commit()