会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
TryMyBest!
博客园
首页
新随笔
联系
订阅
管理
2022年12月
linux系统
摘要: 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备份
摘要: Mysql数据安全备份 - 陈彦斌 - 博客园 (cnblogs.com) https://www.cnblogs.com/chenyanbin/p/14020293.html
阅读全文
posted @ 2022-12-07 14:19 TryMyBest!
阅读(7)
评论(0)
推荐(0)
编辑
2021年10月
python的画图网站
摘要: 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)
编辑
2021年8月
pg数据库的一些函数
摘要: 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)
编辑
2021年6月
分组合并 group_concat和炸裂
摘要: 分组合并group_concat 炸裂SELECT a,unnest(string_to_array(b,'、')) FROM "t"
阅读全文
posted @ 2021-06-20 08:53 TryMyBest!
阅读(52)
评论(0)
推荐(0)
编辑
2021年4月
usedrange
摘要: 如果表格第一行或者第一列没有数据,使用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)
编辑
2021年3月
查询运行中的sql语句
摘要: select * from pg_stat_activity where datname='dgdb'
阅读全文
posted @ 2021-03-16 11:44 TryMyBest!
阅读(71)
评论(0)
推荐(0)
编辑
pg自动生成时间序列
摘要: 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)
编辑
下一页
公告