当前位置:网站首页>Use of transactions - Django, SQL tools
Use of transactions - Django, SQL tools
2022-07-19 05:03:00 【du fei】
Third party modules need to be installed when using
pip install django-haystack whoosh jieba -i https://pypi.python.org/simple/ # Lock
from django.db import transaction
# Open transaction
with transaction.atomic():
# Add rollback
point = transaction.savepoint()
try:
User.objects.filter(name='zhangsan').update(name='wangwu')
except Exception as e:
print(e)
# Rollback when the modification fails
transaction.savepoint_rollback(point)
# Submit after success
transaction.savepoint_commit(point)sql The command line in
select @@global.transaction_isolation; Look at the big picture
select @@transaction_isolation; View the current
set session transaction isolation level serializable; Serializable
Open transaction
mysql> start transaction;
end
commitlink : https://pan.baidu.com/s/1WW8TF1PnOBZPHAK8N_uJMw?pwd=tvu5
Extraction code : tvu5
Copy the content and open Baidu disk , It is more convenient to operate
full name (Name):cr173
Serial number (Code):8d8120df-a5c3-4989-8f47-5afc79c56e7c Change Password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
# 6.SQLyog Be overdue , How to decode
I'm using SQLyog 9.63, There's only a one month probation period , How to exceed the probation period , What do I do ?
At this time, I can tell you a solution , That is by deleting the registry key , Get another month's probation . The specific operation method is as follows :
First step , Enter... In the run window regedit, Enter to enter the registry editor .
The second step , By path HKEY_CURRENT_USER->SoftWare Find the one marked in red {8E919370-*} term .
## The third step , Right click the item , Choose Delete , Click Yes again .
边栏推荐
- Deleting snapshot: error deleting snapshot: Dictionary problem
- NPM installation tutorial
- Fanoutexchange switch is simple to use
- 泰迪杯A题完整版 优化更新(4/23)
- Common PostgreSQL data operation notes (updated from time to time)
- Notes on Advanced Mathematics: selected exercises of Wu Yue
- Cve-2022-23131 ZABBIX SAML SSO authentication bypass vulnerability
- String string special interception processing according to symbols
- 基于SSM框架的考勤签到请假系统
- shardingsphere内核原理
猜你喜欢
随机推荐
RestAPI
First training notes of moderlarts
邮箱发送邮件(包含附件,网易、QQ)
CVE-2019-14234 Django JSONField SQL注入漏洞
FanoutExchange交换机简单使用
Cve-2022-23131 ZABBIX SAML SSO authentication bypass vulnerability
MySQL fuzzy matching 1, 11111 similar string problems
Swagger's pit
fastjson、jackjson、gson区别和注意点
一文了解定时任务
用户管理-分页
POC——DVWA‘s File Upload
ES文档操作
.sh脚本编写
浅聊链路追踪
图片上传的逻辑
DirectExchange交换机的简单使用。
pygame安装-Requirement already satisfied问题
POC——DVWA‘s File Inclusion
ModelArts第二次培训笔记








[email protected]: `node install.js` 的问题"/>