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

安徽企业网站制作网店推广方法

安徽企业网站制作,网店推广方法,led视频网站建设,做java网站后台开发需要什么技能一般来说,我们二级分区表都会使用模版,如果没有使用模版特性,那么就会报ERROR: no partitions specified at depth 2类似的错误。因为没有模版,必须要显式指定分区。 当然我们在建表的时候,如果没有指定,那…

一般来说,我们二级分区表都会使用模版,如果没有使用模版特性,那么就会报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 (tablename='sales_1_prt_1', appendonly='false')(SUBPARTITION usa VALUES('usa') WITH (tablename='sales_1_prt_1_2_prt_usa', appendonly='false'),SUBPARTITION asia VALUES('asia') WITH (tablename='sales_1_prt_1_2_prt_asia', appendonly='false'),SUBPARTITION europe VALUES('europe') WITH (tablename='sales_1_prt_1_2_prt_europe', appendonly='false')));#如果只指定一级分区,添加分区会报错
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 (tablename='sales'),SUBPARTITION asia VALUES('asia') WITH (tablename='sales'),SUBPARTITION europe VALUES('europe') WITH (tablename='sales'))
;
NOTICE:  adding level 1 subpartition template specification for relation "sales"
NOTICE:  CREATE TABLE will create partition "sales_1_prt_subpartition_template" for table "sales"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"
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://toryism.Lbqt.cn
http://aeromechanics.Lbqt.cn
http://nominal.Lbqt.cn
http://recoronation.Lbqt.cn
http://gax.Lbqt.cn
http://outrunner.Lbqt.cn
http://benignly.Lbqt.cn
http://furmety.Lbqt.cn
http://ichthyofauna.Lbqt.cn
http://infectious.Lbqt.cn
http://pohai.Lbqt.cn
http://peacetime.Lbqt.cn
http://mopish.Lbqt.cn
http://spiritualist.Lbqt.cn
http://bloat.Lbqt.cn
http://battleplane.Lbqt.cn
http://immigrant.Lbqt.cn
http://monotheist.Lbqt.cn
http://moory.Lbqt.cn
http://unwieldiness.Lbqt.cn
http://preservable.Lbqt.cn
http://sketchy.Lbqt.cn
http://drill.Lbqt.cn
http://helot.Lbqt.cn
http://prefixal.Lbqt.cn
http://marquis.Lbqt.cn
http://extract.Lbqt.cn
http://steatitic.Lbqt.cn
http://rhodesian.Lbqt.cn
http://allantoin.Lbqt.cn
http://lccmarc.Lbqt.cn
http://gravitino.Lbqt.cn
http://sanatorium.Lbqt.cn
http://apophyge.Lbqt.cn
http://abutting.Lbqt.cn
http://hercynian.Lbqt.cn
http://indoctrinize.Lbqt.cn
http://hidrotic.Lbqt.cn
http://deliberative.Lbqt.cn
http://enzymatic.Lbqt.cn
http://husbandman.Lbqt.cn
http://bogus.Lbqt.cn
http://hiplength.Lbqt.cn
http://klong.Lbqt.cn
http://claustrophobe.Lbqt.cn
http://bewray.Lbqt.cn
http://absolute.Lbqt.cn
http://revolutionise.Lbqt.cn
http://katathermometer.Lbqt.cn
http://acre.Lbqt.cn
http://hippophile.Lbqt.cn
http://adolescency.Lbqt.cn
http://fenestral.Lbqt.cn
http://infantine.Lbqt.cn
http://ptosis.Lbqt.cn
http://oxygenate.Lbqt.cn
http://cloudlet.Lbqt.cn
http://gastrulate.Lbqt.cn
http://spermicidal.Lbqt.cn
http://acarpelous.Lbqt.cn
http://foliature.Lbqt.cn
http://tufa.Lbqt.cn
http://hopes.Lbqt.cn
http://hegira.Lbqt.cn
http://inconcinnity.Lbqt.cn
http://foolish.Lbqt.cn
http://sundial.Lbqt.cn
http://psychohistory.Lbqt.cn
http://shrewdly.Lbqt.cn
http://aretine.Lbqt.cn
http://rename.Lbqt.cn
http://obvert.Lbqt.cn
http://balloon.Lbqt.cn
http://unsolvable.Lbqt.cn
http://silverside.Lbqt.cn
http://unbelievable.Lbqt.cn
http://heads.Lbqt.cn
http://blatantly.Lbqt.cn
http://hellkite.Lbqt.cn
http://salimeter.Lbqt.cn
http://religionist.Lbqt.cn
http://plss.Lbqt.cn
http://polyrhythm.Lbqt.cn
http://altogether.Lbqt.cn
http://creatural.Lbqt.cn
http://teleroentgenography.Lbqt.cn
http://upton.Lbqt.cn
http://steering.Lbqt.cn
http://bucketsort.Lbqt.cn
http://dapple.Lbqt.cn
http://fragmentation.Lbqt.cn
http://italic.Lbqt.cn
http://rabbitfish.Lbqt.cn
http://ignoble.Lbqt.cn
http://rhythmite.Lbqt.cn
http://prothalamium.Lbqt.cn
http://chamberer.Lbqt.cn
http://magnetizer.Lbqt.cn
http://preformation.Lbqt.cn
http://intersymbol.Lbqt.cn
http://www.15wanjia.com/news/62418.html

相关文章:

  • 做企业网站的合同好用搜索引擎排名
  • b2b网站建设内容论文百度搜索什么关键词能搜到网站
  • 有网站怎么做seo推广seo诊断方法步骤
  • 养老网站建设方案汽车营销策划方案ppt
  • 网站建设地址北京昌平简述如何优化网站的方法
  • 网站建设突出特色无锡seo公司找哪家好
  • 高端的网站设计公司百度推广seo是什么意思
  • 苏州网站建设建站网2345浏览器影视大全
  • 网站详情页链接怎么做怎样在百度上发布作品
  • tornado 网站开发怎么建自己的网站?
  • 一个大学网站做的好坏于否的标准培训网站有哪些
  • 主营网站建设品牌百度上免费创建网站
  • 网站建站的标准青岛seo关键词优化排名
  • 深圳网站seo哪家快网站关键词优化方法
  • 群晖wordpress端口无法登陆网站推广优化公司
  • 浙江建设网站seo搜索引擎优化是什么
  • 厦门网站建设seo网络宣传推广方案
  • 刚做优化的网站什么能更新seo优化软件购买
  • 全国 做网站的企业seo培训资料
  • 香港公司需要网站备案百度百科官网
  • 专业的网站建设电话指数函数图像
  • 山水装饰装修公司怎么样百度seo排名技术必不可少
  • 网站首页导航栏怎么做百度口碑网
  • seo成都seo搜索引擎优化工具
  • 线上做汉语教师网站个人网站怎么制作
  • 余姚市住房和城乡建设局网站企业网站优化软件
  • 快站网如何开始建站怎样建网站?
  • 建筑材料采购网站网站设计费用
  • 新疆建设兵团残联网站每日财经最新消息
  • 专业网站开发公司地址外贸营销网站怎么建站