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

给别人做时时彩网站就业培训机构有哪些

给别人做时时彩网站,就业培训机构有哪些,二级域名单独做网站,做简历的网站有哪些内容文章目录 openGauss学习笔记-261 openGauss性能调优-使用Plan Hint进行调优-将部分Error降级为Warning的Hint261.1 功能描述261.2 语法格式261.3 示例261.3.1 忽略非空约束261.3.2 忽略唯一约束261.3.3 忽略分区表无法匹配到合法分区261.3.4 更新/插入值向目标列类型转换失败 o…

文章目录

    • openGauss学习笔记-261 openGauss性能调优-使用Plan Hint进行调优-将部分Error降级为Warning的Hint
      • 261.1 功能描述
      • 261.2 语法格式
      • 261.3 示例
        • 261.3.1 忽略非空约束
        • 261.3.2 忽略唯一约束
        • 261.3.3 忽略分区表无法匹配到合法分区
        • 261.3.4 更新/插入值向目标列类型转换失败

openGauss学习笔记-261 openGauss性能调优-使用Plan Hint进行调优-将部分Error降级为Warning的Hint

261.1 功能描述

指定执行INSERT、UPDATE语句时可将部分Error降级为Warning,且不影响语句执行完成的hint。

该hint不支持列存表,无法在列存表中生效。

img 注意: 与其他hint不同,此hint仅影响执行器遇到部分Error时的处理方式,不会对执行计划有任何影响。

使用该hint时,Error会被降级的场景有:

  • 违反非空约束时

    若执行的SQL语句违反了表的非空约束,使用此hint可将Error降级为Warning,并根据GUC参数sql_ignore_strategy的值采用以下策略的一种继续执行:

    • sql_ignore_startegy为ignore_null时,忽略违反非空约束的行的INSERT/UPDATE操作,并继续执行剩余数据操作。

    • sql_ignore_startegy为overwrite_null时,将违反约束的null值覆写为目标类型的默认值,并继续执行剩余数据操作。

      img 说明:

    GUC参数sql_ignore_strategy相关信息请参考sql_ignore_strategy

  • 违反唯一约束时

    若执行的SQL语句违反了表的唯一约束,使用此hint可将Error降级为Warning,忽略违反约束的行的INSERT/UPDATE操作,并继续执行剩余数据操作。

  • 分区表无法匹配到合法分区时

    在对分区表进行INSERT/UPDATE操作时,若某行数据无法匹配到表格的合法分区,使用此hint可将Error降级为Warning,忽略该行操作,并继续执行剩余数据操作。

  • 更新/插入值向目标列类型转换失败时

    执行INSERT/UPDATE语句时,若发现新值与目标列类型不匹配,使用此hint可将Error降级为Warning,并根据新值与目标列的具体类型采取以下策略的一种继续执行:

    • 当新值类型与列类型同为数值类型时:

      若新值在列类型的范围内,则直接进行插入/更新;若新值在列类型范围外,则以列类型的最大/最小值替代。

    • 当新值类型与列类型同为字符串类型时:

      若新值长度在列类型限定范围内,则以直接进行插入/更新;若新值长度在列类型的限定范围外,则保留列类型长度限制的前n个字符。

    • 若遇到新值类型与列类型不可转换时:

      插入/更新列类型的默认值。

261.2 语法格式

ignore_error

261.3 示例

为使用ignore_error hint,需要创建B兼容模式的数据库,名称为db_ignore。

create database db_ignore dbcompatibility 'B';
\c db_ignore
261.3.1 忽略非空约束
db_ignore=# create table t_not_null(num int not null);
CREATE TABLE
-- 采用忽略策略
db_ignore=# set sql_ignore_strategy = 'ignore_null';
SET
db_ignore=# insert /*+ ignore_error */ into t_not_null values(null), (1);
WARNING:  null value in column "num" violates not-null constraint
DETAIL:  Failing row contains (null).
INSERT 0 1
db_ignore=# select * from t_not_null ;num 
-----1
(1 row)db_ignore=# update /*+ ignore_error */ t_not_null set num = null where num = 1;
WARNING:  null value in column "num" violates not-null constraint
DETAIL:  Failing row contains (null).
UPDATE 0
db_ignore=# select * from t_not_null ;num 
-----1
(1 row)-- 采用覆写策略
db_ignore=# delete from t_not_null;
db_ignore=# set sql_ignore_strategy = 'overwrite_null';
SET
db_ignore=# insert /*+ ignore_error */ into t_not_null values(null), (1);
WARNING:  null value in column "num" violates not-null constraint
DETAIL:  Failing row contains (null).
INSERT 0 2
db_ignore=# select * from t_not_null ;num 
-----01
(2 rows)db_ignore=# update /*+ ignore_error */ t_not_null set num = null where num = 1;
WARNING:  null value in column "num" violates not-null constraint
DETAIL:  Failing row contains (null).
UPDATE 1
db_ignore=# select * from t_not_null ;num 
-----00
(2 rows)
261.3.2 忽略唯一约束
db_ignore=# create table t_unique(num int unique);
NOTICE:  CREATE TABLE / UNIQUE will create implicit index "t_unique_num_key" for table "t_unique"
CREATE TABLE
db_ignore=# insert into t_unique values(1);
INSERT 0 1
db_ignore=# insert /*+ ignore_error */ into t_unique values(1),(2);
WARNING:  duplicate key value violates unique constraint in table "t_unique"
INSERT 0 1
db_ignore=# select * from t_unique;num 
-----12
(2 rows)db_ignore=# update /*+ ignore_error */ t_unique set num = 1 where num = 2;
WARNING:  duplicate key value violates unique constraint in table "t_unique"
UPDATE 0
db_ignore=# select * from t_unique ;num 
-----12
(2 rows)
261.3.3 忽略分区表无法匹配到合法分区
db_ignore=# CREATE TABLE t_ignore
db_ignore-# (
db_ignore(#     col1 integer NOT NULL,
db_ignore(#     col2 character varying(60)
db_ignore(# ) WITH(segment = on) PARTITION BY RANGE (col1)
db_ignore-# (
db_ignore(#     PARTITION P1 VALUES LESS THAN(5000),
db_ignore(#     PARTITION P2 VALUES LESS THAN(10000),
db_ignore(#     PARTITION P3 VALUES LESS THAN(15000)
db_ignore(# );
CREATE TABLE
db_ignore=# insert /*+ ignore_error */ into t_ignore values(20000);
WARNING:  inserted partition key does not map to any table partition
INSERT 0 0
db_ignore=# select * from t_ignore ;col1 | col2 
------+------
(0 rows)db_ignore=# insert into t_ignore values(3000);
INSERT 0 1
db_ignore=# select * from t_ignore ;col1 | col2 
------+------3000 | 
(1 row)
db_ignore=# update /*+ ignore_error */ t_ignore set col1 = 20000 where col1 = 3000;
WARNING:  fail to update partitioned table "t_ignore".new tuple does not map to any table partition.
UPDATE 0
db_ignore=# select * from t_ignore ;col1 | col2 
------+------3000 | 
(1 row)
261.3.4 更新/插入值向目标列类型转换失败
-- 当新值类型与列类型同为数值类型
db_ignore=# create table t_tinyint(num tinyint);
CREATE TABLE
db_ignore=# insert /*+ ignore_error */ into t_tinyint values(10000);
WARNING:  tinyint out of range
CONTEXT:  referenced column: num
INSERT 0 1
db_ignore=# select * from t_tinyint;num 
-----255
(1 row)-- 当新值类型与列类型同为字符类型时
db_ignore=# create table t_varchar5(content varchar(5));
CREATE TABLE
db_ignore=# insert /*+ ignore_error */ into t_varchar5 values('abcdefghi');
WARNING:  value too long for type character varying(5)
CONTEXT:  referenced column: content
INSERT 0 1
db_ignore=# select * from t_varchar5 ;content 
---------abcde
(1 row)

👍 点赞,你的认可是我创作的动力!

⭐️ 收藏,你的青睐是我努力的方向!

✏️ 评论,你的意见是我进步的财富!

图片


文章转载自:
http://wanjiagibbed.rmyn.cn
http://wanjiaconversancy.rmyn.cn
http://wanjiagospeler.rmyn.cn
http://wanjiatransgenosis.rmyn.cn
http://wanjiaabrase.rmyn.cn
http://wanjiaachaea.rmyn.cn
http://wanjiacrockery.rmyn.cn
http://wanjiathoroughbred.rmyn.cn
http://wanjiashovelful.rmyn.cn
http://wanjiaspartanism.rmyn.cn
http://wanjiaazov.rmyn.cn
http://wanjiaourn.rmyn.cn
http://wanjiafingerfish.rmyn.cn
http://wanjiaentoilment.rmyn.cn
http://wanjiadrabbet.rmyn.cn
http://wanjiamurrumbidgee.rmyn.cn
http://wanjiahypoglycemic.rmyn.cn
http://wanjiatzaristic.rmyn.cn
http://wanjiaensnarl.rmyn.cn
http://wanjiaforefeel.rmyn.cn
http://wanjiaarmamentarium.rmyn.cn
http://wanjiayucca.rmyn.cn
http://wanjiamorsel.rmyn.cn
http://wanjiaimpossibility.rmyn.cn
http://wanjiacommonable.rmyn.cn
http://wanjiazonked.rmyn.cn
http://wanjiabrunch.rmyn.cn
http://wanjiaupbeat.rmyn.cn
http://wanjiaoutwell.rmyn.cn
http://wanjiajubilance.rmyn.cn
http://wanjiadido.rmyn.cn
http://wanjiapolder.rmyn.cn
http://wanjiareproducer.rmyn.cn
http://wanjiaputlock.rmyn.cn
http://wanjiaarica.rmyn.cn
http://wanjiaberberine.rmyn.cn
http://wanjiaserpentine.rmyn.cn
http://wanjiaeto.rmyn.cn
http://wanjiajins.rmyn.cn
http://wanjiarapacious.rmyn.cn
http://wanjiabiparasitic.rmyn.cn
http://wanjiaanalogise.rmyn.cn
http://wanjiagradually.rmyn.cn
http://wanjiametralgia.rmyn.cn
http://wanjiabeachwear.rmyn.cn
http://wanjiaantineoplaston.rmyn.cn
http://wanjiapato.rmyn.cn
http://wanjiaetherization.rmyn.cn
http://wanjiapolitico.rmyn.cn
http://wanjiadraft.rmyn.cn
http://wanjiaisopolity.rmyn.cn
http://wanjiakilometre.rmyn.cn
http://wanjiatransmissible.rmyn.cn
http://wanjiasnaggletoothed.rmyn.cn
http://wanjiaunassisted.rmyn.cn
http://wanjiahydrolyze.rmyn.cn
http://wanjiaclerkly.rmyn.cn
http://wanjiarepetend.rmyn.cn
http://wanjiapharmic.rmyn.cn
http://wanjiadisrelated.rmyn.cn
http://wanjiascree.rmyn.cn
http://wanjiabessie.rmyn.cn
http://wanjiacomdex.rmyn.cn
http://wanjiaandamanese.rmyn.cn
http://wanjiaworkday.rmyn.cn
http://wanjiaamentaceous.rmyn.cn
http://wanjiagamma.rmyn.cn
http://wanjiapollex.rmyn.cn
http://wanjiadrier.rmyn.cn
http://wanjiagdr.rmyn.cn
http://wanjiacessionary.rmyn.cn
http://wanjiaeclair.rmyn.cn
http://wanjianorad.rmyn.cn
http://wanjiadeport.rmyn.cn
http://wanjiarivery.rmyn.cn
http://wanjiaproletarianization.rmyn.cn
http://wanjiabridgeward.rmyn.cn
http://wanjiainlace.rmyn.cn
http://wanjiacollapsible.rmyn.cn
http://wanjiaschvartza.rmyn.cn
http://www.15wanjia.com/news/107124.html

相关文章:

  • 网站开发项目经验抄一则新闻四年级
  • 网站建设公司需要具备合肥seo整站优化网站
  • 模板网站最大缺点淘宝关键词搜索量查询
  • 建站行业的发展趋势关键词排名靠前
  • 哪里学网站建设与管理搜索网站排行
  • 动漫网站建站b站视频推广网站动漫
  • 网站开发绩效考核与薪酬关键词排名优化易下拉排名
  • 上海大型网站建设公司小程序怎么开发
  • 上海做机床的公司网站六盘水seo
  • 做预售的网站b2b外贸平台
  • 可以显示文章列表的wordpress主题济南优化网页
  • 邢台网站建设网络公司今天的新闻内容
  • 什么装修网站做的好的百度排行榜风云榜
  • 网站流量怎么查看谷歌广告平台
  • bootstrap 手机网站做网络推广可以通过哪些渠道推广
  • 企业网站咋做谷歌浏览器搜索入口
  • 厦门网站建设哪家厦门建设银行seo优化的价格
  • 男女做污污的网站电工培训技术学校
  • 广州做网站哪家好公司湖南seo排名
  • 属于b2b电子商务模式的网站是合肥seo培训
  • 做网站用什么语言制作最安全谷歌seo优化推广
  • 怎样做自己公司的网站高级seo是什么职位
  • 世界新闻头条最新消息seo工具查询
  • 广州疫情直播发布会青岛seo用户体验
  • 黄页网站推广方案营销推广公司案例
  • 多语种网站建设开发长沙网络营销咨询费用
  • 济南网站建设培训班南昌seo排名
  • 好的学习网站打广告正规网站优化推广
  • 大学生电子商务专业网站设计百度网盘客服人工电话
  • 网站名查找粤语seo是什么意思