03 2021 档案

摘要:一、insert、delete、update可以使用returning 1、基本用法 declare id nubmer; begin insert into test (id, name, age) values(seq.nextval, '李四', 25) returning id into i 阅读全文
posted @ 2021-03-30 15:22 hziwei 阅读(776) 评论(0) 推荐(0) 编辑
摘要:一、安装docker 1、更新Ubuntu的apt源 sudo apt-get update 2、安装包允许apt通过HTTPS使用仓库 sudo dpkg --configure -a sudo apt-get install apt-transport-https ca-certificates 阅读全文
posted @ 2021-03-23 16:25 hziwei 阅读(415) 评论(0) 推荐(0) 编辑
摘要:一、trunc截取数字,小数位舍去,整数位取0,不进行四舍五入 TRUNC(n1, n2) n1要处理的数字,n2保留的位数(默认是舍弃所有小数位) SELECT TRUNC(123.45) FROM DUAL; # 123 SELECT TRUNC(123.45, 0) FROM DUAL; # 阅读全文
posted @ 2021-03-16 18:49 hziwei 阅读(2163) 评论(0) 推荐(0) 编辑
摘要:ORACLE JSON处理 声明json DECLARE P_CLOB CLOB := '{ "age":123 }'; V_JSON_IN JSON_OBJECT_T := JSON_OBJECT_T.PARSE(P_CLOB); V_AGE_ID NUMBER := V_JSON_IN.GET_ 阅读全文
posted @ 2021-03-08 16:15 hziwei 阅读(2125) 评论(0) 推荐(0) 编辑
摘要:1、service.py import os,sys # 创建子进程 pid = os.fork() if pid > 0: sys.exit(0) pass # 修改子进程工作目录 os.chdir("/") # 创建新的会话,子进程成为会话的首进程 os.setsid() # 修改工作目录的um 阅读全文
posted @ 2021-03-04 18:16 hziwei 阅读(138) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/2008908/202103/2008908-20210303101058893-2103094865.png) 阅读全文
posted @ 2021-03-03 10:11 hziwei 阅读(42) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示