ZhangZhihui's Blog  

 

复制代码
zzh@ZZHPC:~$ docker run --name postgres16 -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=aaa -d postgres:alpine
8e36b7bdc47572723a416c319b83f20b2eac7ef25adb3ac1a875e909f45ebdb6
zzh@ZZHPC:~$ docker exec -it postgres16 createdb --username=root --owner=root simple_bank
zzh@ZZHPC:~$ docker exec -it postgres16 psql -U root simple_bank
psql (16.1)
Type "help" for help.

simple_bank=# show transaction isolation level;
 transaction_isolation 
-----------------------
 read committed
(1 row)

simple_bank=# begin;
BEGIN
simple_bank=*# set transaction isolation level repeatable read;
SET
simple_bank=*# show transaction isolation level;
 transaction_isolation 
-----------------------
 repeatable read
(1 row)

simple_bank=*# set transaction isolation level serializable;
SET
simple_bank=*# show transaction isolation level;
 transaction_isolation 
-----------------------
 serializable
(1 row)

simple_bank=*#
复制代码

 

 

 

posted on   ZhangZhihuiAAA  阅读(45)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
 
点击右上角即可分享
微信分享提示