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

无忧网站建设多少钱wordpress主题 苏醒

无忧网站建设多少钱,wordpress主题 苏醒,网页设计图片切换,道路建设网站一般来说#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.yutouwan.com/news/98806/

相关文章:

  • 克拉玛依市建设局网站彩票网站里的统计怎么做
  • 营销型网站建设的概念旅游网站技术方案
  • 工作室 网站东莞互联网大公司
  • 违禁网站用什么浏览器住房城乡建设局是干什么的
  • 图片点开是网站怎么做免费网站转app
  • 搭建钓鱼网站教程中企动力z邮局登录
  • 宿迁网站制作网站模板下载大全
  • 免费建设网站c3sales网站解析密码
  • 单位网站等级保护必须做吗智能小程序收款码
  • 企业培训惠州seo工作室
  • 嘉兴网站建设电话源代码开发网站
  • 网站模块图片尺寸暗红色网站
  • 网站后台管理界面html新零售平台软件系统
  • iis7添加网站网上做展板素材的网站
  • 株洲网站开发长春网站排名优化费用
  • 内蒙古手机网站制作wordpress上传图片代码
  • 服饰类行业_如果要建设网站_说明其建站流程.公司内部 网站开发
  • 网站建设行业努力都看不到效果万网网站购买
  • 网站底部设计代码东莞专业网站设计制作公司
  • 南昌集团网站建设上杭县建设局网站
  • 专业的传媒行业网站开发佛山网站建设招标
  • 网站开发H5网站后台如何添加视频
  • 睢宁建网站绥化市建设局官方网站
  • 电商网站需求分析软文推广怎么做
  • 简述如何对网站进行推广?h5模板素材
  • 网站美工做确认取消对话框酒店seo是什么意思
  • 网站开发下载功能如何实现陕西汽车网站建设
  • 台州铭企做的网站设计制作一个生态瓶
  • 南宁网站关键词推广如何查网站是哪家公司做的
  • 做垂直网站什么是网站的功能模块