摘要: 1.scp /opt/dataeye/scripts/wydms.py root@172.16.100.72:/opt/dataeye/scripts/ 2.从本地上传文件到服务器:rz 阅读全文
posted @ 2022-12-28 11:14 TryMyBest! 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Mysql数据安全备份 - 陈彦斌 - 博客园 (cnblogs.com) https://www.cnblogs.com/chenyanbin/p/14020293.html 阅读全文
posted @ 2022-12-07 14:19 TryMyBest! 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1.gallery.pyecharts.org 2.seaborn.pydata.org 3.pyecharts.org 4.echarts.apache.org 5.matplotlib.org 阅读全文
posted @ 2021-10-10 13:53 TryMyBest! 阅读(367) 评论(0) 推荐(1) 编辑
摘要: 1.固定分隔符拆分的函数split_part(要拆分的字段,'*',2),取拆分后的第二部分值。 2.炸裂函数unnest(string_to_array(要炸裂的字段,'、')) 3.重要pg数据库除法不能到小数,要加上::float.例如 select 3/2 :: float 阅读全文
posted @ 2021-08-23 09:31 TryMyBest! 阅读(942) 评论(0) 推荐(0) 编辑
摘要: 分组合并group_concat 炸裂SELECT a,unnest(string_to_array(b,'、')) FROM "t" 阅读全文
posted @ 2021-06-20 08:53 TryMyBest! 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 如果表格第一行或者第一列没有数据,使用usedrange时,数组的第一行就不是从首行开始算啦 阅读全文
posted @ 2021-04-27 15:09 TryMyBest! 阅读(221) 评论(0) 推荐(0) 编辑
摘要: update 表名 set 字段名 = round(random()) 阅读全文
posted @ 2021-04-21 09:17 TryMyBest! 阅读(63) 评论(0) 推荐(0) 编辑
摘要: select * from pg_stat_activity where datname='dgdb' 阅读全文
posted @ 2021-03-16 11:44 TryMyBest! 阅读(71) 评论(0) 推荐(0) 编辑
摘要: select substring(cast(generate_series as varchar),1,7)bb from generate_series(to_date('2016-04','yyyy-mm'), to_date('2021-03', 'yyyy-mm'), '1 month' : 阅读全文
posted @ 2021-03-04 10:29 TryMyBest! 阅读(345) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE 表名 Drop constraint 约束名; ALTER TABLE 表名 add constraint 约束名 CHECK 约束条件; 阅读全文
posted @ 2021-03-02 12:45 TryMyBest! 阅读(121) 评论(0) 推荐(0) 编辑