摘要: string_agg(expression, delimiter) 非空输入值连接成字符串,由分隔符分隔 array_agg(expression) 输入值(包括空值)连接到一个数组中 ;输入数组连接成一个更高维度的数组(输入必须具有相同的维度,不能为空或空); 1.查询同一个部门下的员工且合并起来 阅读全文
posted @ 2020-07-07 14:44 MountainTai 阅读(3653) 评论(0) 推荐(0)
摘要: 在使用left jion时,on和where条件的区别如下: 1、on条件是在生成临时表时使用的条件,它不管on中的条件是否为真,都会返回左边表中的记录。 2、where条件是在临时表生成好后,再对临时表进行过滤的条件。这时已经没有left join的含义(必须返回左边表的记录)了,条件不为真的就全 阅读全文
posted @ 2020-06-16 10:39 MountainTai 阅读(2071) 评论(1) 推荐(1)
摘要: logon 图解SQL的inner join、left join、right join、full outer join、union、union all的区别 对于SQL的Join,在学习起来可能是比较乱的。我们知道,SQL的Join语法有很多inner的,有outer的,有left的,有时候,对于S 阅读全文
posted @ 2020-06-16 10:06 MountainTai 阅读(235) 评论(0) 推荐(0)
摘要: docker打包镜像$ docker exec -it -u 0 764b3ae6ccfa /bin/bashpip install spyne -i https://pypi.tuna.tsinghua.edu.cn/simple$ docker commit 764b3ae6ccfa zt:v0 阅读全文
posted @ 2020-06-12 16:08 MountainTai 阅读(137) 评论(0) 推荐(0)
摘要: 后台导入数据库:psql: create database sit_test with owner=odoo;cmd: psql --username=odoo --dbname=sit_test -q -f dump.sql 阅读全文
posted @ 2020-06-12 16:07 MountainTai 阅读(175) 评论(0) 推荐(0)
摘要: 一:debug途中中断 config文件加入:limit_time_cpu = 60limit_time_real = 120000 二:debug无法启动 1.选择更改日期和时间的区域 2.点击更改区域设置 3.打钩 阅读全文
posted @ 2020-06-12 16:06 MountainTai 阅读(560) 评论(0) 推荐(0)
摘要: 重启升级该模块-uhrp_ynfw_ext过滤数据库-dynfw_zt0402 --db-filter=^sanyuan$ 阅读全文
posted @ 2020-06-12 16:00 MountainTai 阅读(475) 评论(0) 推荐(0)
摘要: git commit --amend解决冲突:git checkout testgit pull origin testgit checkout 任务分支git checkout -b 任务分支-1git merge --no-ff test代码中解决冲突git add .git commit gi 阅读全文
posted @ 2020-06-12 15:59 MountainTai 阅读(217) 评论(0) 推荐(0)
摘要: --载入扩展函数 --extension tablefunc crosstab create extension tablefunc ; 例子: CREATE TABLE ct(id SERIAL, rowid TEXT, attribute TEXT, value TEXT);INSERT INT 阅读全文
posted @ 2020-06-12 15:55 MountainTai 阅读(187) 评论(0) 推荐(0)
摘要: select amount_receivable_residual,id from cms_settlement where "length"(cast((cast(amount_receivable_residual as numeric) % 1) as varchar))-2 >2 阅读全文
posted @ 2020-06-12 15:52 MountainTai 阅读(355) 评论(0) 推荐(0)