摘要:
下表列出了常用的json数据类型操作符: | 操作符 | 操作符右侧数据类型 | 返回类型 | 描述 | | | | | | | -> | int | json or jsonb | 获得 JSON 数组元素(索引从 0 开始,负整数从末尾开始计) | | -> | text | json or j 阅读全文
posted @ 2022-09-16 19:09
KINGBASE研究院
阅读(324)
评论(0)
推荐(0)
摘要:
错误信息产生: 下面的报错一般为有坏块的产生。 test=# select max(create_time) from public.tbl_table where create_time>='2010-11-08'; ERROR: could not read block 365 of relat 阅读全文
posted @ 2022-09-16 19:06
KINGBASE研究院
阅读(177)
评论(0)
推荐(0)
摘要:
说明: 日常业务系统在使用SQL语句进行查询时,开发人员容易将sql查询的子查询放到select语句中进行使用,会造成sql性能的下降。 数据准备: test=# test=# select count(1) from student; count 499 (1 行记录) test=# select 阅读全文
posted @ 2022-09-16 19:01
KINGBASE研究院
阅读(126)
评论(0)
推荐(0)
摘要:
一、数据准备: create table student( id int , s_name varchar(20), t_id int ); create table teacher( id int , t_name varchar(20) ); insert into student values 阅读全文
posted @ 2022-09-16 18:59
KINGBASE研究院
阅读(343)
评论(0)
推荐(0)
摘要:
SQL 优化的过程可以分为逻辑优化和物理优化两个部分。逻辑优化主要是基于规则的优化,简称 RBO(Rule-Based Optimization)。物理优化会为逻辑查询计划中的算子选择某个具体的实现,需要用到一些统计信息,决定哪一种方式代价最低,所以是基于代价的优化 CBO(Cost-Based O 阅读全文
posted @ 2022-09-16 18:54
KINGBASE研究院
阅读(251)
评论(0)
推荐(0)

浙公网安备 33010602011771号