当前位置: 首页 > news >正文

三网合一建站价格微信开发公众平台

三网合一建站价格,微信开发公众平台,网站除了做流量还需要什么软件,北京公司网页设计一般来说#xff0c;我们二级分区表都会使用模版#xff0c;如果没有使用模版特性#xff0c;那么就会报ERROR: no partitions specified at depth 2类似的错误。因为没有模版#xff0c;必须要显式指定分区。 当然我们在建表的时候#xff0c;如果没有指定#xff0c;那…一般来说我们二级分区表都会使用模版如果没有使用模版特性那么就会报ERROR: no partitions specified at depth 2类似的错误。因为没有模版必须要显式指定分区。 当然我们在建表的时候如果没有指定那么后面也可以通过alter table 语句进行添加。下面我们通过一个例子看一下。 CREATE TABLE sales (trans_id integer,ctime timestamp without time zone,region text )DISTRIBUTED BY (trans_id) PARTITION BY RANGE(ctime)SUBPARTITION BY LIST(region)(START (2023-08-18 00:00:00::timestamp without time zone) END (2023-08-19 00:00:00::timestamp without time zone) WITH (tablenamesales_1_prt_1, appendonlyfalse)(SUBPARTITION usa VALUES(usa) WITH (tablenamesales_1_prt_1_2_prt_usa, appendonlyfalse),SUBPARTITION asia VALUES(asia) WITH (tablenamesales_1_prt_1_2_prt_asia, appendonlyfalse),SUBPARTITION europe VALUES(europe) WITH (tablenamesales_1_prt_1_2_prt_europe, appendonlyfalse)));#如果只指定一级分区添加分区会报错 alter table sales add partition sale_3 start (date 2023-08-20) inclusive end (date 2023-08-21) exclusive ; NOTICE: CREATE TABLE will create partition sales_1_prt_sale_3 for table sales ERROR: no partitions specified at depth 2 #必须显式指定才可以添加成功 alter table sales add partition sale_2 START (2023-08-19 00:00:00::timestamp without time zone) END (2023-08-20 00:00:00::timestamp without time zone) (SUBPARTITION usa VALUES(usa),SUBPARTITION asia VALUES(asia) ,SUBPARTITION europe VALUES(europe) ); #插入一些测试数据 insert into sales select generate_series(1,10000000) ,current_date ,usa; insert into sales select generate_series(1,10000000) ,current_date ,asia; insert into sales select generate_series(1,10000000) ,current_date ,europe;#添加模版就算之前有历史数据也是瞬间完成 ALTER TABLE sales SET SUBPARTITION TEMPLATE(SUBPARTITION usa VALUES(usa) WITH (tablenamesales),SUBPARTITION asia VALUES(asia) WITH (tablenamesales),SUBPARTITION europe VALUES(europe) WITH (tablenamesales)) ; NOTICE: adding level 1 subpartition template specification for relation sales NOTICE: CREATE TABLE will create partition sales_1_prt_subpartition_template for table salesNOTICE: CREATE TABLE will create partition sales for table sales_1_prt_subpartition_template NOTICE: CREATE TABLE will create partition sales for table sales_1_prt_subpartition_template NOTICE: CREATE TABLE will create partition sales for table sales_1_prt_subpartition_template ALTER TABLE#这次只指定一级分区就可以添加成功 alter table sales add partition sale_3 start (date 2023-08-20) inclusive end (date 2023-08-21) exclusive ; NOTICE: CREATE TABLE will create partition sales_1_prt_sale_2 for table sales NOTICE: CREATE TABLE will create partition sales_1_prt_sale_2_2_prt_usa for table sales_1_prt_sale_2 NOTICE: CREATE TABLE will create partition sales_1_prt_sale_2_2_prt_asia for table sales_1_prt_sale_2 NOTICE: CREATE TABLE will create partition sales_1_prt_sale_2_2_prt_europe for table sales_1_prt_sale_2 ALTER TABLE 总结 建表的时候最好添加二级分区以后的模版模版也可以后面变更如果不加模版添加分区的时候必须指定子分区所以分区级别越多越复杂。
http://www.hkea.cn/news/14370214/

相关文章:

  • 威海住房和城乡建设局网站做问答营销的网站有哪些
  • 没有网站怎么做百度优化wordpress博客申请
  • 网站建设需要服务器网页设计学生作业
  • 建网站的英文网站制作成都
  • js网站页面效果做网站优化的教程
  • 网站设置在设备之间共享什么意思网站建设工作半年通报
  • 设计网站教程中国建设行业峰会网站
  • 做旅游的网站开个大型购物网站需要多少钱
  • 什么网站可以做设计赚钱企业网站数据库表设计
  • 如何给网站做优化代码企业所得税什么时候交
  • 免费软件下载网站哪个好免费企业邮箱账号密码
  • 上海优化网站公司分类信息网站系统
  • 做聚美优品网站得多少钱镇海建设交通局网站首页
  • 如何统计网站pv中国城乡建设部人力网站首页
  • 那个网站做代买深圳开发app公司
  • 做风投要关注哪些网站微信商城小程序搭建教程
  • 大学生简历制作网站南宁网站建设 南宁联达亿
  • 开办网站原因wordpress中文模板下载
  • 可以做多边形背景的网站商城网页定制开发
  • 个人网站代码编写建设工程施工合同管辖
  • 一个网站如何创建多个页面稿定在线图片编辑
  • 网站配色与布局 教材wordpress相对地址
  • 广东装饰网站建设办公室设计费一般多少钱一平
  • 建设网站小常识免费素材网站无水印
  • 网站排名按天付费nodejs网站开发
  • 建设一个网站用什么软件影视网站
  • 做ps从哪个网站上下载图片大小个人网站栏目设计
  • 如何在手机做网站wd ex4 安装wordpress
  • 网站建设男装定位做资讯网站盈利
  • 大连网站建设咨询口碑好的武进网站建设