python实现mysql事务_python项目_mysql开启事务
with transaction.atomic():save_id= transaction.savepoint() #设置回滚点try:order=Order.objects.create(order_title=order_title,total_price=total_price,real_price=real_price,order_number=order_number,order_st...