
sql
三枚目
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
[redshift][sql]用其他表格的数据来更新当前表格
update test1 t1 set itemname=t2.itemname from test2 t2 where t2.itemcode=t1.itemcode ; update test1 set col2=test2.col2 from test2 join test1 cat on test2.col1=cat.col1;原创 2021-08-26 14:29:45 · 205 阅读 · 0 评论 -
[sql]加速
# accelerate https://www.cnblogs.com/otsf/p/8676487.html https://blog.youkuaiyun.com/kexijun20014/article/details/4654013 https://blog.youkuaiyun.com/wjq008/article/details/48947223 速度:1<2<3<4 1. &l...转载 2018-10-01 09:39:34 · 170 阅读 · 0 评论 -
[sql][redshift]常用函数
PERCENTILE_CONT http://www.maomao365.com/?p=6254 PERCENTILE_CONT(<表达式1>) WITHIN GROUP(ORDER BY <表达式2> [ ASC | DESC ] ) OVER (< partition by 表达式3> ) 参数:表达式1: 此处只能输入一个大于等于0 小于等于1的浮点数 如......原创 2018-11-13 14:53:48 · 1331 阅读 · 0 评论 -
[redshift]查看表格的sort key
https://docs.aws.amazon.com/ja_jp/redshift/latest/dg/r_search_path.html set search_path to '$user', avgpop_jp ; SELECT * FROM pg_table_def WHERE schemaname = 'avgpop_jp' and tablename='m_kokusei_2014...原创 2019-01-30 19:37:08 · 819 阅读 · 0 评论