diff --git a/src/test/mb/expected/big5.out b/src/test/mb/expected/big5.out index 0ca86167ece0fd667b31cd492b3fe7d3741df251..702579eebaa192b8ef1446c2b2b08bc508fe7c82 100644 --- a/src/test/mb/expected/big5.out +++ b/src/test/mb/expected/big5.out @@ -1,84 +1,84 @@ -QUERY: drop table 紅坝戈; -QUERY: create table 紅坝戈 (︽穨 text, そ╋繷 varchar, varchar(16)); -QUERY: create index 紅坝戈index1 on 紅坝戈 using btree (︽穨); -QUERY: create index 紅坝戈index2 on 紅坝戈 using hash (そ╋繷); -QUERY: insert into 紅坝戈 values ('筿福穨', '笷笷м', 'A01く'); -QUERY: insert into 紅坝戈 values ('籹硑穨', '癩方Τそ', 'いB10い'); -QUERY: insert into 紅坝戈 values ('繺都穨', 'Τそ', '蔼Z01'); -QUERY: vacuum 紅坝戈; -QUERY: select * from 紅坝戈; -︽穨|そ╋繷 | -------+----------------+------- -筿福穨|笷笷м |A01く -籹硑穨|癩方Τそ |いB10い -繺都穨|Τそ|蔼Z01 +drop table 紅坝戈 +create table 紅坝戈 (︽穨 text, そ╋繷 varchar, varchar(16)) +create index 紅坝戈index1 on 紅坝戈 using btree (︽穨) +create index 紅坝戈index2 on 紅坝戈 using hash (そ╋繷) +insert into 紅坝戈 values ('筿福穨', '笷笷м', 'A01く') +insert into 紅坝戈 values ('籹硑穨', '癩方Τそ', 'いB10い') +insert into 紅坝戈 values ('繺都穨', 'Τそ', '蔼Z01') +vacuum 紅坝戈 +select * from 紅坝戈 + ︽穨 | そ╋繷 | +--------+------------------+--------- + 筿福穨 | 笷笷м | A01く + 籹硑穨 | 癩方Τそ | いB10い + 繺都穨 | Τそ | 蔼Z01 (3 rows) -QUERY: select * from 紅坝戈 where = '蔼Z01'; -︽穨|そ╋繷 | -------+----------------+------- -繺都穨|Τそ|蔼Z01 +select * from 紅坝戈 where = '蔼Z01' + ︽穨 | そ╋繷 | +--------+------------------+--------- + 繺都穨 | Τそ | 蔼Z01 (1 row) -QUERY: select * from 紅坝戈 where ~* '蔼z01'; -︽穨|そ╋繷 | -------+----------------+------- -繺都穨|Τそ|蔼Z01 +select * from 紅坝戈 where ~* '蔼z01' + ︽穨 | そ╋繷 | +--------+------------------+--------- + 繺都穨 | Τそ | 蔼Z01 (1 row) -QUERY: select * from 紅坝戈 where like '_Z01_'; -︽穨|そ╋繷 | -------+----------------+------- -繺都穨|Τそ|蔼Z01 +select * from 紅坝戈 where like '_Z01_' + ︽穨 | そ╋繷 | +--------+------------------+--------- + 繺都穨 | Τそ | 蔼Z01 (1 row) -QUERY: select * from 紅坝戈 where like '_Z%'; -︽穨|そ╋繷 | -------+----------------+------- -繺都穨|Τそ|蔼Z01 +select * from 紅坝戈 where like '_Z%' + ︽穨 | そ╋繷 | +--------+------------------+--------- + 繺都穨 | Τそ | 蔼Z01 (1 row) -QUERY: select * from 紅坝戈 where そ╋繷 ~ '笷笷[盚癘м]'; -︽穨|そ╋繷| -------+--------+------- -筿福穨|笷笷м|A01く +select * from 紅坝戈 where そ╋繷 ~ '笷笷[盚癘м]' + ︽穨 | そ╋繷 | +--------+----------+--------- + 筿福穨 | 笷笷м | A01く (1 row) -QUERY: select * from 紅坝戈 where そ╋繷 ~* '笷笷[盚癘м]'; -︽穨|そ╋繷| -------+--------+------- -筿福穨|笷笷м|A01く +select * from 紅坝戈 where そ╋繷 ~* '笷笷[盚癘м]' + ︽穨 | そ╋繷 | +--------+----------+--------- + 筿福穨 | 笷笷м | A01く (1 row) -QUERY: select *, character_length(︽穨) from 紅坝戈; -︽穨|そ╋繷 | |length -------+----------------+-------+------ -筿福穨|笷笷м |A01く| 3 -籹硑穨|癩方Τそ |いB10い| 3 -繺都穨|Τそ|蔼Z01| 3 +select *, character_length(︽穨) from 紅坝戈 + ︽穨 | そ╋繷 | | length +--------+------------------+---------+-------- + 筿福穨 | 笷笷м | A01く | 3 + 籹硑穨 | 癩方Τそ | いB10い | 3 + 繺都穨 | Τそ | 蔼Z01 | 3 (3 rows) -QUERY: select *, octet_length(︽穨) from 紅坝戈; -︽穨|そ╋繷 | |octet_length -------+----------------+-------+------------ -筿福穨|笷笷м |A01く| 6 -籹硑穨|癩方Τそ |いB10い| 6 -繺都穨|Τそ|蔼Z01| 6 +select *, octet_length(︽穨) from 紅坝戈 + ︽穨 | そ╋繷 | | octet_length +--------+------------------+---------+-------------- + 筿福穨 | 笷笷м | A01く | 6 + 籹硑穨 | 癩方Τそ | いB10い | 6 + 繺都穨 | Τそ | 蔼Z01 | 6 (3 rows) -QUERY: select *, position('Τ' in そ╋繷) from 紅坝戈; -︽穨|そ╋繷 | |strpos -------+----------------+-------+------ -筿福穨|笷笷м |A01く| 0 -籹硑穨|癩方Τそ |いB10い| 3 -繺都穨|Τそ|蔼Z01| 5 +select *, position('Τ' in そ╋繷) from 紅坝戈 + ︽穨 | そ╋繷 | | strpos +--------+------------------+---------+-------- + 筿福穨 | 笷笷м | A01く | 0 + 籹硑穨 | 癩方Τそ | いB10い | 3 + 繺都穨 | Τそ | 蔼Z01 | 5 (3 rows) -QUERY: select *, substring(そ╋繷 from 3 for 6 ) from 紅坝戈; -︽穨|そ╋繷 | |substr -------+----------------+-------+------------ -筿福穨|笷笷м |A01く|м -籹硑穨|癩方Τそ |いB10い|Τそ -繺都穨|Τそ|蔼Z01|Τそ +select *, substring(そ╋繷 from 3 for 6 ) from 紅坝戈 + ︽穨 | そ╋繷 | | substr +--------+------------------+---------+-------------- + 筿福穨 | 笷笷м | A01く | м + 籹硑穨 | 癩方Τそ | いB10い | Τそ + 繺都穨 | Τそ | 蔼Z01 | Τそ (3 rows) diff --git a/src/test/mb/expected/euc_cn.out b/src/test/mb/expected/euc_cn.out index b9944f48fd8c4b6c4a25fcee1026e9a6163d83b9..93ff30c25afd888a02627f7a22f008a343ad9db7 100644 --- a/src/test/mb/expected/euc_cn.out +++ b/src/test/mb/expected/euc_cn.out @@ -1,87 +1,87 @@ -QUERY: drop table 计算机术语; +drop table 计算机术语 ERROR: Relation '计算机术语' does not exist -QUERY: create table 计算机术语(术语 text, 分类号 varchar, 备注1A char(16)); -QUERY: create index 计算机术语index1 on 计算机术语 using btree(术语); -QUERY: create index 计算机术语index2 on 计算机术语 using btree(分类号); -QUERY: insert into 计算机术语 values('电脑显示屏','机A01上'); -QUERY: insert into 计算机术语 values('电脑图形','分B01中'); -QUERY: insert into 计算机术语 values('电脑程序员','人Z01下'); -QUERY: vacuum 计算机术语; -QUERY: select * from 计算机术语; -术语 |分类号 |备注1a -----------+-------+------ -电脑显示屏|机A01上| -电脑图形 |分B01中| -电脑程序员|人Z01下| +create table 计算机术语(术语 text, 分类号 varchar, 备注1A char(16)) +create index 计算机术语index1 on 计算机术语 using btree(术语) +create index 计算机术语index2 on 计算机术语 using btree(分类号) +insert into 计算机术语 values('电脑显示屏','机A01上') +insert into 计算机术语 values('电脑图形','分B01中') +insert into 计算机术语 values('电脑程序员','人Z01下') +vacuum 计算机术语 +select * from 计算机术语 + 术语 | 分类号 | 备注1a +------------+---------+-------- + 电脑显示屏 | 机A01上 | + 电脑图形 | 分B01中 | + 电脑程序员 | 人Z01下 | (3 rows) -QUERY: select * from 计算机术语 where 分类号 = '人Z01下'; -术语 |分类号 |备注1a -----------+-------+------ -电脑程序员|人Z01下| +select * from 计算机术语 where 分类号 = '人Z01下' + 术语 | 分类号 | 备注1a +------------+---------+-------- + 电脑程序员 | 人Z01下 | (1 row) -QUERY: select * from 计算机术语 where 分类号 ~* '人z01下'; -术语 |分类号 |备注1a -----------+-------+------ -电脑程序员|人Z01下| +select * from 计算机术语 where 分类号 ~* '人z01下' + 术语 | 分类号 | 备注1a +------------+---------+-------- + 电脑程序员 | 人Z01下 | (1 row) -QUERY: select * from 计算机术语 where 分类号 like '_Z01_'; -术语 |分类号 |备注1a -----------+-------+------ -电脑程序员|人Z01下| +select * from 计算机术语 where 分类号 like '_Z01_' + 术语 | 分类号 | 备注1a +------------+---------+-------- + 电脑程序员 | 人Z01下 | (1 row) -QUERY: select * from 计算机术语 where 分类号 like '_Z%'; -术语 |分类号 |备注1a -----------+-------+------ -电脑程序员|人Z01下| +select * from 计算机术语 where 分类号 like '_Z%' + 术语 | 分类号 | 备注1a +------------+---------+-------- + 电脑程序员 | 人Z01下 | (1 row) -QUERY: select * from 计算机术语 where 术语 ~ '电脑[显图]'; -术语 |分类号 |备注1a -----------+-------+------ -电脑显示屏|机A01上| -电脑图形 |分B01中| +select * from 计算机术语 where 术语 ~ '电脑[显图]' + 术语 | 分类号 | 备注1a +------------+---------+-------- + 电脑显示屏 | 机A01上 | + 电脑图形 | 分B01中 | (2 rows) -QUERY: select * from 计算机术语 where 术语 ~* '电脑[显图]'; -术语 |分类号 |备注1a -----------+-------+------ -电脑显示屏|机A01上| -电脑图形 |分B01中| +select * from 计算机术语 where 术语 ~* '电脑[显图]' + 术语 | 分类号 | 备注1a +------------+---------+-------- + 电脑显示屏 | 机A01上 | + 电脑图形 | 分B01中 | (2 rows) -QUERY: select *,character_length(术语) from 计算机术语; -术语 |分类号 |备注1a|length -----------+-------+------+------ -电脑显示屏|机A01上| | 5 -电脑图形 |分B01中| | 4 -电脑程序员|人Z01下| | 5 +select *,character_length(术语) from 计算机术语 + 术语 | 分类号 | 备注1a | length +------------+---------+--------+-------- + 电脑显示屏 | 机A01上 | | 5 + 电脑图形 | 分B01中 | | 4 + 电脑程序员 | 人Z01下 | | 5 (3 rows) -QUERY: select *,octet_length(术语) from 计算机术语; -术语 |分类号 |备注1a|octet_length -----------+-------+------+------------ -电脑显示屏|机A01上| | 10 -电脑图形 |分B01中| | 8 -电脑程序员|人Z01下| | 10 +select *,octet_length(术语) from 计算机术语 + 术语 | 分类号 | 备注1a | octet_length +------------+---------+--------+-------------- + 电脑显示屏 | 机A01上 | | 10 + 电脑图形 | 分B01中 | | 8 + 电脑程序员 | 人Z01下 | | 10 (3 rows) -QUERY: select *,position('显' in 术语) from 计算机术语; -术语 |分类号 |备注1a|strpos -----------+-------+------+------ -电脑显示屏|机A01上| | 3 -电脑图形 |分B01中| | 0 -电脑程序员|人Z01下| | 0 +select *,position('显' in 术语) from 计算机术语 + 术语 | 分类号 | 备注1a | strpos +------------+---------+--------+-------- + 电脑显示屏 | 机A01上 | | 3 + 电脑图形 | 分B01中 | | 0 + 电脑程序员 | 人Z01下 | | 0 (3 rows) -QUERY: select *,substring(术语 from 3 for 4) from 计算机术语; -术语 |分类号 |备注1a|substr -----------+-------+------+------ -电脑显示屏|机A01上| |显示屏 -电脑图形 |分B01中| |图形 -电脑程序员|人Z01下| |程序员 +select *,substring(术语 from 3 for 4) from 计算机术语 + 术语 | 分类号 | 备注1a | substr +------------+---------+--------+-------- + 电脑显示屏 | 机A01上 | | 显示屏 + 电脑图形 | 分B01中 | | 图形 + 电脑程序员 | 人Z01下 | | 程序员 (3 rows) diff --git a/src/test/mb/expected/euc_jp.out b/src/test/mb/expected/euc_jp.out index 6f38e998a899e3b6beeece548b1542246561fec6..838b0a8363c4867b167f494d041c4992b1693282 100644 --- a/src/test/mb/expected/euc_jp.out +++ b/src/test/mb/expected/euc_jp.out @@ -1,13 +1,13 @@ -drop table 纷换怠脱胳; +drop table 纷换怠脱胳 ERROR: Relation '纷换怠脱胳' does not exist -create table 纷换怠脱胳 (脱胳 text, 尸梧コ〖ド varchar, 洒雇1Aだよ char(16)); -create index 纷换怠脱胳index1 on 纷换怠脱胳 using btree (脱胳); -create index 纷换怠脱胳index2 on 纷换怠脱胳 using hash (尸梧コ〖ド); -insert into 纷换怠脱胳 values('コンピュ〖タディスプレイ','怠A01惧'); -insert into 纷换怠脱胳 values('コンピュ〖タグラフィックス','尸B10面'); -insert into 纷换怠脱胳 values('コンピュ〖タプログラマ〖','客Z01布'); -vacuum 纷换怠脱胳; -select * from 纷换怠脱胳; +create table 纷换怠脱胳 (脱胳 text, 尸梧コ〖ド varchar, 洒雇1Aだよ char(16)) +create index 纷换怠脱胳index1 on 纷换怠脱胳 using btree (脱胳) +create index 纷换怠脱胳index2 on 纷换怠脱胳 using hash (尸梧コ〖ド) +insert into 纷换怠脱胳 values('コンピュ〖タディスプレイ','怠A01惧') +insert into 纷换怠脱胳 values('コンピュ〖タグラフィックス','尸B10面') +insert into 纷换怠脱胳 values('コンピュ〖タプログラマ〖','客Z01布') +vacuum 纷换怠脱胳 +select * from 纷换怠脱胳 脱胳 | 尸梧コ〖ド | 洒雇1aだよ ----------------------------+------------+------------ コンピュ〖タディスプレイ | 怠A01惧 | @@ -15,45 +15,45 @@ select * from コンピュ〖タプログラマ〖 | 客Z01布 | (3 rows) -select * from 纷换怠脱胳 where 尸梧コ〖ド = '客Z01布'; +select * from 纷换怠脱胳 where 尸梧コ〖ド = '客Z01布' 脱胳 | 尸梧コ〖ド | 洒雇1aだよ --------------------------+------------+------------ コンピュ〖タプログラマ〖 | 客Z01布 | (1 row) -select * from 纷换怠脱胳 where 尸梧コ〖ド ~* '客z01布'; +select * from 纷换怠脱胳 where 尸梧コ〖ド ~* '客z01布' 脱胳 | 尸梧コ〖ド | 洒雇1aだよ --------------------------+------------+------------ コンピュ〖タプログラマ〖 | 客Z01布 | (1 row) -select * from 纷换怠脱胳 where 尸梧コ〖ド like '_Z01_'; +select * from 纷换怠脱胳 where 尸梧コ〖ド like '_Z01_' 脱胳 | 尸梧コ〖ド | 洒雇1aだよ --------------------------+------------+------------ コンピュ〖タプログラマ〖 | 客Z01布 | (1 row) -select * from 纷换怠脱胳 where 尸梧コ〖ド like '_Z%'; +select * from 纷换怠脱胳 where 尸梧コ〖ド like '_Z%' 脱胳 | 尸梧コ〖ド | 洒雇1aだよ --------------------------+------------+------------ コンピュ〖タプログラマ〖 | 客Z01布 | (1 row) -select * from 纷换怠脱胳 where 脱胳 ~ 'コンピュ〖タ[デグ]'; +select * from 纷换怠脱胳 where 脱胳 ~ 'コンピュ〖タ[デグ]' 脱胳 | 尸梧コ〖ド | 洒雇1aだよ ----------------------------+------------+------------ コンピュ〖タディスプレイ | 怠A01惧 | コンピュ〖タグラフィックス | 尸B10面 | (2 rows) -select * from 纷换怠脱胳 where 脱胳 ~* 'コンピュ〖タ[デグ]'; +select * from 纷换怠脱胳 where 脱胳 ~* 'コンピュ〖タ[デグ]' 脱胳 | 尸梧コ〖ド | 洒雇1aだよ ----------------------------+------------+------------ コンピュ〖タディスプレイ | 怠A01惧 | コンピュ〖タグラフィックス | 尸B10面 | (2 rows) -select *,character_length(脱胳) from 纷换怠脱胳; +select *,character_length(脱胳) from 纷换怠脱胳 脱胳 | 尸梧コ〖ド | 洒雇1aだよ | length ----------------------------+------------+------------+-------- コンピュ〖タディスプレイ | 怠A01惧 | | 12 @@ -61,7 +61,7 @@ select *,character_length( コンピュ〖タプログラマ〖 | 客Z01布 | | 12 (3 rows) -select *,octet_length(脱胳) from 纷换怠脱胳; +select *,octet_length(脱胳) from 纷换怠脱胳 脱胳 | 尸梧コ〖ド | 洒雇1aだよ | octet_length ----------------------------+------------+------------+-------------- コンピュ〖タディスプレイ | 怠A01惧 | | 24 @@ -69,7 +69,7 @@ select *,octet_length( コンピュ〖タプログラマ〖 | 客Z01布 | | 24 (3 rows) -select *,position('デ' in 脱胳) from 纷换怠脱胳; +select *,position('デ' in 脱胳) from 纷换怠脱胳 脱胳 | 尸梧コ〖ド | 洒雇1aだよ | strpos ----------------------------+------------+------------+-------- コンピュ〖タディスプレイ | 怠A01惧 | | 7 @@ -77,7 +77,7 @@ select *,position(' コンピュ〖タプログラマ〖 | 客Z01布 | | 0 (3 rows) -select *,substring(脱胳 from 10 for 4) from 纷换怠脱胳; +select *,substring(脱胳 from 10 for 4) from 纷换怠脱胳 脱胳 | 尸梧コ〖ド | 洒雇1aだよ | substr ----------------------------+------------+------------+---------- コンピュ〖タディスプレイ | 怠A01惧 | | プレイ diff --git a/src/test/mb/expected/euc_kr.out b/src/test/mb/expected/euc_kr.out index 9d3ca8ce3dd364f429eee3cd47db5b7659a484e2..7899344928ebd33335cda7b427e6a78914a661cf 100644 --- a/src/test/mb/expected/euc_kr.out +++ b/src/test/mb/expected/euc_kr.out @@ -1,87 +1,87 @@ -QUERY: drop table 酮擤薛侩绢; +drop table 酮擤薛侩绢 ERROR: Relation '酮擤薛侩绢' does not exist -QUERY: create table 酮擤薛侩绢 (侩绢 text, 萋拙内靛 varchar, 厚绊1A扼备 char(16)); -QUERY: create index 酮擤薛侩绢index1 on 酮擤薛侩绢 using btree (侩绢); -QUERY: create index 酮擤薛侩绢index2 on 酮擤薛侩绢 using hash (萋拙内靛); -QUERY: insert into 酮擤薛侩绢 values('哪腔磐叼胶敲饭捞', '薛A01呔'); -QUERY: insert into 酮擤薛侩绢 values('哪腔磐弊贰侨胶', '萋B10耖'); -QUERY: insert into 酮擤薛侩绢 values('哪腔磐橇肺弊贰赣', '煅Z01'); -QUERY: vacuum 酮擤薛侩绢; -QUERY: select * from 酮擤薛侩绢; -侩绢 |萋拙内靛|厚绊1a扼备 -----------------+--------+---------- -哪腔磐叼胶敲饭捞|薛A01呔 | -哪腔磐弊贰侨胶 |萋B10耖 | -哪腔磐橇肺弊贰赣|煅Z01 | +create table 酮擤薛侩绢 (侩绢 text, 萋拙内靛 varchar, 厚绊1A扼备 char(16)) +create index 酮擤薛侩绢index1 on 酮擤薛侩绢 using btree (侩绢) +create index 酮擤薛侩绢index2 on 酮擤薛侩绢 using hash (萋拙内靛) +insert into 酮擤薛侩绢 values('哪腔磐叼胶敲饭捞', '薛A01呔') +insert into 酮擤薛侩绢 values('哪腔磐弊贰侨胶', '萋B10耖') +insert into 酮擤薛侩绢 values('哪腔磐橇肺弊贰赣', '煅Z01') +vacuum 酮擤薛侩绢 +select * from 酮擤薛侩绢 + 侩绢 | 萋拙内靛 | 厚绊1a扼备 +------------------+----------+------------ + 哪腔磐叼胶敲饭捞 | 薛A01呔 | + 哪腔磐弊贰侨胶 | 萋B10耖 | + 哪腔磐橇肺弊贰赣 | 煅Z01 | (3 rows) -QUERY: select * from 酮擤薛侩绢 where 萋拙内靛 = '煅Z01'; -侩绢 |萋拙内靛|厚绊1a扼备 -----------------+--------+---------- -哪腔磐橇肺弊贰赣|煅Z01 | +select * from 酮擤薛侩绢 where 萋拙内靛 = '煅Z01' + 侩绢 | 萋拙内靛 | 厚绊1a扼备 +------------------+----------+------------ + 哪腔磐橇肺弊贰赣 | 煅Z01 | (1 row) -QUERY: select * from 酮擤薛侩绢 where 萋拙内靛 ~* '煅z01'; -侩绢 |萋拙内靛|厚绊1a扼备 -----------------+--------+---------- -哪腔磐橇肺弊贰赣|煅Z01 | +select * from 酮擤薛侩绢 where 萋拙内靛 ~* '煅z01' + 侩绢 | 萋拙内靛 | 厚绊1a扼备 +------------------+----------+------------ + 哪腔磐橇肺弊贰赣 | 煅Z01 | (1 row) -QUERY: select * from 酮擤薛侩绢 where 萋拙内靛 like '_Z01_'; -侩绢 |萋拙内靛|厚绊1a扼备 -----------------+--------+---------- -哪腔磐橇肺弊贰赣|煅Z01 | +select * from 酮擤薛侩绢 where 萋拙内靛 like '_Z01_' + 侩绢 | 萋拙内靛 | 厚绊1a扼备 +------------------+----------+------------ + 哪腔磐橇肺弊贰赣 | 煅Z01 | (1 row) -QUERY: select * from 酮擤薛侩绢 where 萋拙内靛 like '_Z%'; -侩绢 |萋拙内靛|厚绊1a扼备 -----------------+--------+---------- -哪腔磐橇肺弊贰赣|煅Z01 | +select * from 酮擤薛侩绢 where 萋拙内靛 like '_Z%' + 侩绢 | 萋拙内靛 | 厚绊1a扼备 +------------------+----------+------------ + 哪腔磐橇肺弊贰赣 | 煅Z01 | (1 row) -QUERY: select * from 酮擤薛侩绢 where 侩绢 ~ '哪腔磐[叼弊]'; -侩绢 |萋拙内靛|厚绊1a扼备 -----------------+--------+---------- -哪腔磐叼胶敲饭捞|薛A01呔 | -哪腔磐弊贰侨胶 |萋B10耖 | +select * from 酮擤薛侩绢 where 侩绢 ~ '哪腔磐[叼弊]' + 侩绢 | 萋拙内靛 | 厚绊1a扼备 +------------------+----------+------------ + 哪腔磐叼胶敲饭捞 | 薛A01呔 | + 哪腔磐弊贰侨胶 | 萋B10耖 | (2 rows) -QUERY: select * from 酮擤薛侩绢 where 侩绢 ~* '哪腔磐[叼弊]'; -侩绢 |萋拙内靛|厚绊1a扼备 -----------------+--------+---------- -哪腔磐叼胶敲饭捞|薛A01呔 | -哪腔磐弊贰侨胶 |萋B10耖 | +select * from 酮擤薛侩绢 where 侩绢 ~* '哪腔磐[叼弊]' + 侩绢 | 萋拙内靛 | 厚绊1a扼备 +------------------+----------+------------ + 哪腔磐叼胶敲饭捞 | 薛A01呔 | + 哪腔磐弊贰侨胶 | 萋B10耖 | (2 rows) -QUERY: select *,character_length(侩绢) from 酮擤薛侩绢; -侩绢 |萋拙内靛|厚绊1a扼备|length -----------------+--------+----------+------ -哪腔磐叼胶敲饭捞|薛A01呔 | | 8 -哪腔磐弊贰侨胶 |萋B10耖 | | 7 -哪腔磐橇肺弊贰赣|煅Z01 | | 8 +select *,character_length(侩绢) from 酮擤薛侩绢 + 侩绢 | 萋拙内靛 | 厚绊1a扼备 | length +------------------+----------+------------+-------- + 哪腔磐叼胶敲饭捞 | 薛A01呔 | | 8 + 哪腔磐弊贰侨胶 | 萋B10耖 | | 7 + 哪腔磐橇肺弊贰赣 | 煅Z01 | | 8 (3 rows) -QUERY: select *,octet_length(侩绢) from 酮擤薛侩绢; -侩绢 |萋拙内靛|厚绊1a扼备|octet_length -----------------+--------+----------+------------ -哪腔磐叼胶敲饭捞|薛A01呔 | | 16 -哪腔磐弊贰侨胶 |萋B10耖 | | 14 -哪腔磐橇肺弊贰赣|煅Z01 | | 16 +select *,octet_length(侩绢) from 酮擤薛侩绢 + 侩绢 | 萋拙内靛 | 厚绊1a扼备 | octet_length +------------------+----------+------------+-------------- + 哪腔磐叼胶敲饭捞 | 薛A01呔 | | 16 + 哪腔磐弊贰侨胶 | 萋B10耖 | | 14 + 哪腔磐橇肺弊贰赣 | 煅Z01 | | 16 (3 rows) -QUERY: select *,position('叼' in 侩绢) from 酮擤薛侩绢; -侩绢 |萋拙内靛|厚绊1a扼备|strpos -----------------+--------+----------+------ -哪腔磐叼胶敲饭捞|薛A01呔 | | 4 -哪腔磐弊贰侨胶 |萋B10耖 | | 0 -哪腔磐橇肺弊贰赣|煅Z01 | | 0 +select *,position('叼' in 侩绢) from 酮擤薛侩绢 + 侩绢 | 萋拙内靛 | 厚绊1a扼备 | strpos +------------------+----------+------------+-------- + 哪腔磐叼胶敲饭捞 | 薛A01呔 | | 4 + 哪腔磐弊贰侨胶 | 萋B10耖 | | 0 + 哪腔磐橇肺弊贰赣 | 煅Z01 | | 0 (3 rows) -QUERY: select *,substring(侩绢 from 3 for 4) from 酮擤薛侩绢; -侩绢 |萋拙内靛|厚绊1a扼备|substr -----------------+--------+----------+-------- -哪腔磐叼胶敲饭捞|薛A01呔 | |磐叼胶敲 -哪腔磐弊贰侨胶 |萋B10耖 | |磐弊贰侨 -哪腔磐橇肺弊贰赣|煅Z01 | |磐橇肺弊 +select *,substring(侩绢 from 3 for 4) from 酮擤薛侩绢 + 侩绢 | 萋拙内靛 | 厚绊1a扼备 | substr +------------------+----------+------------+---------- + 哪腔磐叼胶敲饭捞 | 薛A01呔 | | 磐叼胶敲 + 哪腔磐弊贰侨胶 | 萋B10耖 | | 磐弊贰侨 + 哪腔磐橇肺弊贰赣 | 煅Z01 | | 磐橇肺弊 (3 rows) diff --git a/src/test/mb/expected/euc_tw.out b/src/test/mb/expected/euc_tw.out index a7d2b940695d88ead7afd96fc5b42a8f0cc5001e..4e1e588295cfd8c270b3befe8d4a339d34e0070b 100644 --- a/src/test/mb/expected/euc_tw.out +++ b/src/test/mb/expected/euc_tw.out @@ -1,85 +1,85 @@ -QUERY: drop table 燹俑骜砧; +drop table 燹俑骜砧 ERROR: Relation '燹俑骜砧' does not exist -QUERY: create table 燹俑骜砧 (如淦杀 text, 狞瞥婉螭 varchar, 氢蛇 varchar(16)); -QUERY: create index 燹俑骜砧index1 on 燹俑骜砧 using btree (如淦杀); -QUERY: create index 燹俑骜砧index2 on 燹俑骜砧 using hash (狞瞥婉螭); -QUERY: insert into 燹俑骜砧 values ('缳妾淦', '绠绠绎世', '啤A01念'); -QUERY: insert into 燹俑骜砧 values ('犒葸淦', '芈溷却宇狞瞥', '你B10你'); -QUERY: insert into 燹俑骜砧 values ('螫悖淦', '印汤洗枪却宇狞瞥', '仨Z01摩'); -QUERY: vacuum 燹俑骜砧; -QUERY: select * from 燹俑骜砧; -如淦杀|狞瞥婉螭 |氢蛇 -------+----------------+------- -缳妾淦|绠绠绎世 |啤A01念 -犒葸淦|芈溷却宇狞瞥 |你B10你 -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩 +create table 燹俑骜砧 (如淦杀 text, 狞瞥婉螭 varchar, 氢蛇 varchar(16)) +create index 燹俑骜砧index1 on 燹俑骜砧 using btree (如淦杀) +create index 燹俑骜砧index2 on 燹俑骜砧 using hash (狞瞥婉螭) +insert into 燹俑骜砧 values ('缳妾淦', '绠绠绎世', '啤A01念') +insert into 燹俑骜砧 values ('犒葸淦', '芈溷却宇狞瞥', '你B10你') +insert into 燹俑骜砧 values ('螫悖淦', '印汤洗枪却宇狞瞥', '仨Z01摩') +vacuum 燹俑骜砧 +select * from 燹俑骜砧 + 如淦杀 | 狞瞥婉螭 | 氢蛇 +--------+------------------+--------- + 缳妾淦 | 绠绠绎世 | 啤A01念 + 犒葸淦 | 芈溷却宇狞瞥 | 你B10你 + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 (3 rows) -QUERY: select * from 燹俑骜砧 where 氢蛇 = '仨Z01摩'; -如淦杀|狞瞥婉螭 |氢蛇 -------+----------------+------- -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩 +select * from 燹俑骜砧 where 氢蛇 = '仨Z01摩' + 如淦杀 | 狞瞥婉螭 | 氢蛇 +--------+------------------+--------- + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 (1 row) -QUERY: select * from 燹俑骜砧 where 氢蛇 ~* '仨z01摩'; -如淦杀|狞瞥婉螭 |氢蛇 -------+----------------+------- -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩 +select * from 燹俑骜砧 where 氢蛇 ~* '仨z01摩' + 如淦杀 | 狞瞥婉螭 | 氢蛇 +--------+------------------+--------- + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 (1 row) -QUERY: select * from 燹俑骜砧 where 氢蛇 like '_Z01_'; -如淦杀|狞瞥婉螭 |氢蛇 -------+----------------+------- -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩 +select * from 燹俑骜砧 where 氢蛇 like '_Z01_' + 如淦杀 | 狞瞥婉螭 | 氢蛇 +--------+------------------+--------- + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 (1 row) -QUERY: select * from 燹俑骜砧 where 氢蛇 like '_Z%'; -如淦杀|狞瞥婉螭 |氢蛇 -------+----------------+------- -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩 +select * from 燹俑骜砧 where 氢蛇 like '_Z%' + 如淦杀 | 狞瞥婉螭 | 氢蛇 +--------+------------------+--------- + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 (1 row) -QUERY: select * from 燹俑骜砧 where 狞瞥婉螭 ~ '绠绠绎[凫卮世]'; -如淦杀|狞瞥婉螭|氢蛇 -------+--------+------- -缳妾淦|绠绠绎世|啤A01念 +select * from 燹俑骜砧 where 狞瞥婉螭 ~ '绠绠绎[凫卮世]' + 如淦杀 | 狞瞥婉螭 | 氢蛇 +--------+----------+--------- + 缳妾淦 | 绠绠绎世 | 啤A01念 (1 row) -QUERY: select * from 燹俑骜砧 where 狞瞥婉螭 ~* '绠绠绎[凫卮世]'; -如淦杀|狞瞥婉螭|氢蛇 -------+--------+------- -缳妾淦|绠绠绎世|啤A01念 +select * from 燹俑骜砧 where 狞瞥婉螭 ~* '绠绠绎[凫卮世]' + 如淦杀 | 狞瞥婉螭 | 氢蛇 +--------+----------+--------- + 缳妾淦 | 绠绠绎世 | 啤A01念 (1 row) -QUERY: select *, character_length(如淦杀) from 燹俑骜砧; -如淦杀|狞瞥婉螭 |氢蛇 |length -------+----------------+-------+------ -缳妾淦|绠绠绎世 |啤A01念| 3 -犒葸淦|芈溷却宇狞瞥 |你B10你| 3 -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩| 3 +select *, character_length(如淦杀) from 燹俑骜砧 + 如淦杀 | 狞瞥婉螭 | 氢蛇 | length +--------+------------------+---------+-------- + 缳妾淦 | 绠绠绎世 | 啤A01念 | 3 + 犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 3 + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 3 (3 rows) -QUERY: select *, octet_length(如淦杀) from 燹俑骜砧; -如淦杀|狞瞥婉螭 |氢蛇 |octet_length -------+----------------+-------+------------ -缳妾淦|绠绠绎世 |啤A01念| 6 -犒葸淦|芈溷却宇狞瞥 |你B10你| 6 -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩| 6 +select *, octet_length(如淦杀) from 燹俑骜砧 + 如淦杀 | 狞瞥婉螭 | 氢蛇 | octet_length +--------+------------------+---------+-------------- + 缳妾淦 | 绠绠绎世 | 啤A01念 | 6 + 犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 6 + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 6 (3 rows) -QUERY: select *, position('却宇' in 狞瞥婉螭) from 燹俑骜砧; -如淦杀|狞瞥婉螭 |氢蛇 |strpos -------+----------------+-------+------ -缳妾淦|绠绠绎世 |啤A01念| 0 -犒葸淦|芈溷却宇狞瞥 |你B10你| 3 -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩| 5 +select *, position('却宇' in 狞瞥婉螭) from 燹俑骜砧 + 如淦杀 | 狞瞥婉螭 | 氢蛇 | strpos +--------+------------------+---------+-------- + 缳妾淦 | 绠绠绎世 | 啤A01念 | 0 + 犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 3 + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 5 (3 rows) -QUERY: select *, substring(狞瞥婉螭 from 3 for 6 ) from 燹俑骜砧; -如淦杀|狞瞥婉螭 |氢蛇 |substr -------+----------------+-------+------------ -缳妾淦|绠绠绎世 |啤A01念|绎世 -犒葸淦|芈溷却宇狞瞥 |你B10你|却宇狞瞥 -螫悖淦|印汤洗枪却宇狞瞥|仨Z01摩|洗枪却宇狞瞥 +select *, substring(狞瞥婉螭 from 3 for 6 ) from 燹俑骜砧 + 如淦杀 | 狞瞥婉螭 | 氢蛇 | substr +--------+------------------+---------+-------------- + 缳妾淦 | 绠绠绎世 | 啤A01念 | 绎世 + 犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 却宇狞瞥 + 螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 洗枪却宇狞瞥 (3 rows) diff --git a/src/test/mb/expected/mule_internal.out b/src/test/mb/expected/mule_internal.out index 09f5489ee5fa01f04abc60fc2e305cbcfba6feac..6df80473e6eca94e68a1ef077610c007f3ea3a44 100644 --- a/src/test/mb/expected/mule_internal.out +++ b/src/test/mb/expected/mule_internal.out @@ -1,333 +1,333 @@ -QUERY: drop table 挿讙换挼脱捀�; +drop table 挿讙换挼脱捀� ERROR: Relation '挿讙换挼脱捀�' does not exist -QUERY: create table 挿讙换挼脱捀� (捦褣胳 text, 捠瑨梧挜硳〖挜� varchar, 捜鲯雇1A挙罀よ char(16)); -QUERY: create index 挿讙换挼脱捀靑ndex1 on 挿讙换挼脱捀� using btree (捦褣胳); -QUERY: create index 挿讙换挼脱捀靑ndex2 on 挿讙换挼脱捀� using hash (捠瑨梧挜硳〖挜�); -QUERY: insert into 挿讙换挼脱捀� values('挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ','挼01捑�'); -QUERY: insert into 挿讙换挼脱捀� values('挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜�','捠珺10捗�'); -QUERY: insert into 挿讙换挼脱捀� values('挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖','捒蚙01挷�'); -QUERY: vacuum 挿讙换挼脱捀�; -QUERY: select * from 挿讙换挼脱捀�; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ ----------------------------------------+---------------+-------------- -挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ |挼01捑� | -挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜箌捠珺10捗� | -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 |捒蚙01挷� | +create table 挿讙换挼脱捀� (捦褣胳 text, 捠瑨梧挜硳〖挜� varchar, 捜鲯雇1A挙罀よ char(16)) +create index 挿讙换挼脱捀靑ndex1 on 挿讙换挼脱捀� using btree (捦褣胳) +create index 挿讙换挼脱捀靑ndex2 on 挿讙换挼脱捀� using hash (捠瑨梧挜硳〖挜�) +insert into 挿讙换挼脱捀� values('挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ','挼01捑�') +insert into 挿讙换挼脱捀� values('挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜�','捠珺10捗�') +insert into 挿讙换挼脱捀� values('挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖','捒蚙01挷�') +vacuum 挿讙换挼脱捀� +select * from 挿讙换挼脱捀� + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ +-----------------------------------------+-----------------+---------------- + 挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ | 挼01捑� | + 挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜� | 捠珺10捗� | + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | (3 rows) -QUERY: select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� = '捒蚙01挷�'; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ -------------------------------------+---------------+-------------- -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖|捒蚙01挷� | +select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� = '捒蚙01挷�' + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ +--------------------------------------+-----------------+---------------- + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | (1 row) -QUERY: select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� ~* '捒蛕01挷�'; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ -------------------------------------+---------------+-------------- -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖|捒蚙01挷� | +select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� ~* '捒蛕01挷�' + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ +--------------------------------------+-----------------+---------------- + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | (1 row) -QUERY: select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� like '_Z01_'; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ -------------------------------------+---------------+-------------- -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖|捒蚙01挷� | +select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� like '_Z01_' + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ +--------------------------------------+-----------------+---------------- + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | (1 row) -QUERY: select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� like '_Z%'; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ -------------------------------------+---------------+-------------- -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖|捒蚙01挷� | +select * from 挿讙换挼脱捀� where 捠瑨梧挜硳〖挜� like '_Z%' + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ +--------------------------------------+-----------------+---------------- + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | (1 row) -QUERY: select * from 挿讙换挼脱捀� where 捦褣胳 ~ '挜硳ン挜話ュ挕紥タ[挜菕グ]'; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ ----------------------------------------+---------------+-------------- -挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ |挼01捑� | -挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜箌捠珺10捗� | +select * from 挿讙换挼脱捀� where 捦褣胳 ~ '挜硳ン挜話ュ挕紥タ[挜菕グ]' + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ +-----------------------------------------+-----------------+---------------- + 挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ | 挼01捑� | + 挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜� | 捠珺10捗� | (2 rows) -QUERY: select * from 挿讙换挼脱捀� where 捦褣胳 ~* '挜硳ン挜話ュ挕紥タ[挜菕グ]'; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ ----------------------------------------+---------------+-------------- -挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ |挼01捑� | -挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜箌捠珺10捗� | +select * from 挿讙换挼脱捀� where 捦褣胳 ~* '挜硳ン挜話ュ挕紥タ[挜菕グ]' + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ +-----------------------------------------+-----------------+---------------- + 挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ | 挼01捑� | + 挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜� | 捠珺10捗� | (2 rows) -QUERY: select *,character_length(捦褣胳) from 挿讙换挼脱捀�; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ|length ----------------------------------------+---------------+--------------+------ -挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ |挼01捑� | | 12 -挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜箌捠珺10捗� | | 13 -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 |捒蚙01挷� | | 12 +select *,character_length(捦褣胳) from 挿讙换挼脱捀� + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ | length +-----------------------------------------+-----------------+----------------+-------- + 挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ | 挼01捑� | | 12 + 挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜� | 捠珺10捗� | | 13 + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | | 12 (3 rows) -QUERY: select *,octet_length(捦褣胳) from 挿讙换挼脱捀�; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ|octet_length ----------------------------------------+---------------+--------------+------------ -挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ |挼01捑� | | 36 -挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜箌捠珺10捗� | | 39 -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 |捒蚙01挷� | | 36 +select *,octet_length(捦褣胳) from 挿讙换挼脱捀� + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ | octet_length +-----------------------------------------+-----------------+----------------+-------------- + 挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ | 挼01捑� | | 36 + 挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜� | 捠珺10捗� | | 39 + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | | 36 (3 rows) -QUERY: select *,position('挜�' in 捦褣胳) from 挿讙换挼脱捀�; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ|strpos ----------------------------------------+---------------+--------------+------ -挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ |挼01捑� | | 7 -挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜箌捠珺10捗� | | 0 -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 |捒蚙01挷� | | 0 +select *,position('挜�' in 捦褣胳) from 挿讙换挼脱捀� + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ | strpos +-----------------------------------------+-----------------+----------------+-------- + 挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ | 挼01捑� | | 7 + 挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜� | 捠珺10捗� | | 0 + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | | 0 (3 rows) -QUERY: select *,substring(捦褣胳 from 10 for 4) from 挿讙换挼脱捀�; -捦褣胳 |捠瑨梧挜硳〖挜蓔捜鲯雇1a挙罀よ|substr ----------------------------------------+---------------+--------------+------------ -挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ |挼01捑� | |挜讙レ挜� -挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜箌捠珺10捗� | |挜ッ挜瘨ス -挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 |捒蚙01挷� | |挜閽マ挕� +select *,substring(捦褣胳 from 10 for 4) from 挿讙换挼脱捀� + 捦褣胳 | 捠瑨梧挜硳〖挜� | 捜鲯雇1a挙罀よ | substr +-----------------------------------------+-----------------+----------------+-------------- + 挜硳ン挜話ュ挕紥タ挜菕ィ挜箳プ挜鞉イ | 挼01捑� | | 挜讙レ挜� + 挜硳ン挜話ュ挕紥タ挜皰ラ挜諕ィ挜脪ク挜� | 捠珺10捗� | | 挜ッ挜瘨ス + 挜硳ン挜話ュ挕紥タ挜讙ロ挜皰ラ挜迴〖 | 捒蚙01挷� | | 挜閽マ挕� (3 rows) -QUERY: drop table 懠茟算懟鷳术懹�; +drop table 懠茟算懟鷳术懹� ERROR: Relation '懠茟算懟鷳术懹�' does not exist -QUERY: create table 懠茟算懟鷳术懹�(懯鯌语 text, 懛謶类懞� varchar, 懕笐注1A char(16)); -QUERY: create index 懠茟算懟鷳术懹飅ndex1 on 懠茟算懟鷳术懹� using btree(懯鯌语); -QUERY: create index 懠茟算懟鷳术懹飅ndex2 on 懠茟算懟鷳术懹� using btree(懛謶类懞�); -QUERY: insert into 懠茟算懟鷳术懹� values('懙鐟脑懴詰示懫�','懟鶤01懮�'); -QUERY: insert into 懠茟算懟鷳术懹� values('懙鐟脑懲紤形','懛諦01懼�'); -QUERY: insert into 懠茟算懟鷳术懹� values('懙鐟脑懗虘序懺�','懭薢01懴�'); -QUERY: vacuum 懠茟算懟鷳术懹�; -QUERY: select * from 懠茟算懟鷳术懹�; -懯鯌语 |懛謶类懞舼懕笐注1a ----------------+---------+-------- -懙鐟脑懴詰示懫羭懟鶤01懮蟶 -懙鐟脑懲紤形 |懛諦01懼衸 -懙鐟脑懗虘序懺眧懭薢01懴聕 +create table 懠茟算懟鷳术懹�(懯鯌语 text, 懛謶类懞� varchar, 懕笐注1A char(16)) +create index 懠茟算懟鷳术懹飅ndex1 on 懠茟算懟鷳术懹� using btree(懯鯌语) +create index 懠茟算懟鷳术懹飅ndex2 on 懠茟算懟鷳术懹� using btree(懛謶类懞�) +insert into 懠茟算懟鷳术懹� values('懙鐟脑懴詰示懫�','懟鶤01懮�') +insert into 懠茟算懟鷳术懹� values('懙鐟脑懲紤形','懛諦01懼�') +insert into 懠茟算懟鷳术懹� values('懙鐟脑懗虘序懺�','懭薢01懴�') +vacuum 懠茟算懟鷳术懹� +select * from 懠茟算懟鷳术懹� + 懯鯌语 | 懛謶类懞� | 懕笐注1a +-----------------+-----------+---------- + 懙鐟脑懴詰示懫� | 懟鶤01懮� | + 懙鐟脑懲紤形 | 懛諦01懼� | + 懙鐟脑懗虘序懺� | 懭薢01懴� | (3 rows) -QUERY: select * from 懠茟算懟鷳术懹� where 懛謶类懞� = '懭薢01懴�'; -懯鯌语 |懛謶类懞舼懕笐注1a ----------------+---------+-------- -懙鐟脑懗虘序懺眧懭薢01懴聕 +select * from 懠茟算懟鷳术懹� where 懛謶类懞� = '懭薢01懴�' + 懯鯌语 | 懛謶类懞� | 懕笐注1a +-----------------+-----------+---------- + 懙鐟脑懗虘序懺� | 懭薢01懴� | (1 row) -QUERY: select * from 懠茟算懟鷳术懹� where 懛謶类懞� ~* '懭藌01懴�'; -懯鯌语 |懛謶类懞舼懕笐注1a ----------------+---------+-------- -懙鐟脑懗虘序懺眧懭薢01懴聕 +select * from 懠茟算懟鷳术懹� where 懛謶类懞� ~* '懭藌01懴�' + 懯鯌语 | 懛謶类懞� | 懕笐注1a +-----------------+-----------+---------- + 懙鐟脑懗虘序懺� | 懭薢01懴� | (1 row) -QUERY: select * from 懠茟算懟鷳术懹� where 懛謶类懞� like '_Z01_'; -懯鯌语 |懛謶类懞舼懕笐注1a ----------------+---------+-------- -懙鐟脑懗虘序懺眧懭薢01懴聕 +select * from 懠茟算懟鷳术懹� where 懛謶类懞� like '_Z01_' + 懯鯌语 | 懛謶类懞� | 懕笐注1a +-----------------+-----------+---------- + 懙鐟脑懗虘序懺� | 懭薢01懴� | (1 row) -QUERY: select * from 懠茟算懟鷳术懹� where 懛謶类懞� like '_Z%'; -懯鯌语 |懛謶类懞舼懕笐注1a ----------------+---------+-------- -懙鐟脑懗虘序懺眧懭薢01懴聕 +select * from 懠茟算懟鷳术懹� where 懛謶类懞� like '_Z%' + 懯鯌语 | 懛謶类懞� | 懕笐注1a +-----------------+-----------+---------- + 懙鐟脑懗虘序懺� | 懭薢01懴� | (1 row) -QUERY: select * from 懠茟算懟鷳术懹� where 懯鯌语 ~ '懙鐟脑[懴詰图]'; -懯鯌语 |懛謶类懞舼懕笐注1a ----------------+---------+-------- -懙鐟脑懴詰示懫羭懟鶤01懮蟶 -懙鐟脑懲紤形 |懛諦01懼衸 +select * from 懠茟算懟鷳术懹� where 懯鯌语 ~ '懙鐟脑[懴詰图]' + 懯鯌语 | 懛謶类懞� | 懕笐注1a +-----------------+-----------+---------- + 懙鐟脑懴詰示懫� | 懟鶤01懮� | + 懙鐟脑懲紤形 | 懛諦01懼� | (2 rows) -QUERY: select * from 懠茟算懟鷳术懹� where 懯鯌语 ~* '懙鐟脑[懴詰图]'; -懯鯌语 |懛謶类懞舼懕笐注1a ----------------+---------+-------- -懙鐟脑懴詰示懫羭懟鶤01懮蟶 -懙鐟脑懲紤形 |懛諦01懼衸 +select * from 懠茟算懟鷳术懹� where 懯鯌语 ~* '懙鐟脑[懴詰图]' + 懯鯌语 | 懛謶类懞� | 懕笐注1a +-----------------+-----------+---------- + 懙鐟脑懴詰示懫� | 懟鶤01懮� | + 懙鐟脑懲紤形 | 懛諦01懼� | (2 rows) -QUERY: select *,character_length(懯鯌语) from 懠茟算懟鷳术懹�; -懯鯌语 |懛謶类懞舼懕笐注1a|length ----------------+---------+--------+------ -懙鐟脑懴詰示懫羭懟鶤01懮蟶 | 5 -懙鐟脑懲紤形 |懛諦01懼衸 | 4 -懙鐟脑懗虘序懺眧懭薢01懴聕 | 5 +select *,character_length(懯鯌语) from 懠茟算懟鷳术懹� + 懯鯌语 | 懛謶类懞� | 懕笐注1a | length +-----------------+-----------+----------+-------- + 懙鐟脑懴詰示懫� | 懟鶤01懮� | | 5 + 懙鐟脑懲紤形 | 懛諦01懼� | | 4 + 懙鐟脑懗虘序懺� | 懭薢01懴� | | 5 (3 rows) -QUERY: select *,octet_length(懯鯌语) from 懠茟算懟鷳术懹�; -懯鯌语 |懛謶类懞舼懕笐注1a|octet_length ----------------+---------+--------+------------ -懙鐟脑懴詰示懫羭懟鶤01懮蟶 | 15 -懙鐟脑懲紤形 |懛諦01懼衸 | 12 -懙鐟脑懗虘序懺眧懭薢01懴聕 | 15 +select *,octet_length(懯鯌语) from 懠茟算懟鷳术懹� + 懯鯌语 | 懛謶类懞� | 懕笐注1a | octet_length +-----------------+-----------+----------+-------------- + 懙鐟脑懴詰示懫� | 懟鶤01懮� | | 15 + 懙鐟脑懲紤形 | 懛諦01懼� | | 12 + 懙鐟脑懗虘序懺� | 懭薢01懴� | | 15 (3 rows) -QUERY: select *,position('懴�' in 懯鯌语) from 懠茟算懟鷳术懹�; -懯鯌语 |懛謶类懞舼懕笐注1a|strpos ----------------+---------+--------+------ -懙鐟脑懴詰示懫羭懟鶤01懮蟶 | 3 -懙鐟脑懲紤形 |懛諦01懼衸 | 0 -懙鐟脑懗虘序懺眧懭薢01懴聕 | 0 +select *,position('懴�' in 懯鯌语) from 懠茟算懟鷳术懹� + 懯鯌语 | 懛謶类懞� | 懕笐注1a | strpos +-----------------+-----------+----------+-------- + 懙鐟脑懴詰示懫� | 懟鶤01懮� | | 3 + 懙鐟脑懲紤形 | 懛諦01懼� | | 0 + 懙鐟脑懗虘序懺� | 懭薢01懴� | | 0 (3 rows) -QUERY: select *,substring(懯鯌语 from 3 for 4) from 懠茟算懟鷳术懹�; -懯鯌语 |懛謶类懞舼懕笐注1a|substr ----------------+---------+--------+--------- -懙鐟脑懴詰示懫羭懟鶤01懮蟶 |懴詰示懫� -懙鐟脑懲紤形 |懛諦01懼衸 |懲紤形 -懙鐟脑懗虘序懺眧懭薢01懴聕 |懗虘序懺� +select *,substring(懯鯌语 from 3 for 4) from 懠茟算懟鷳术懹� + 懯鯌语 | 懛謶类懞� | 懕笐注1a | substr +-----------------+-----------+----------+----------- + 懙鐟脑懴詰示懫� | 懟鶤01懮� | | 懴詰示懫� + 懙鐟脑懲紤形 | 懛諦01懼� | | 懲紤形 + 懙鐟脑懗虘序懺� | 懭薢01懴� | | 懗虘序懺� (3 rows) -QUERY: drop table 撏獡擤撗侩摼�; +drop table 撏獡擤撗侩摼� ERROR: Relation '撏獡擤撗侩摼�' does not exist -QUERY: create table 撏獡擤撗侩摼� (摽霌绢 text, 撦聯拙撃趽靛 varchar, 摵駬绊1A摱髶备 char(16)); -QUERY: create index 撏獡擤撗侩摼頸ndex1 on 撏獡擤撗侩摼� using btree (摽霌绢); -QUERY: create index 撏獡擤撗侩摼頸ndex2 on 撏獡擤撗侩摼� using hash (撦聯拙撃趽靛); -QUERY: insert into 撏獡擤撗侩摼� values('撃膿腔撆蛽叼摻簱敲摲箵捞', '撗01撨�'); -QUERY: insert into 撏獡擤撗侩摼� values('撃膿腔撆蛽弊摲侨摻�', '撦翨10擇�'); -QUERY: insert into 撏獡擤撗侩摼� values('撃膿腔撆蛽橇摲螕弊摲赣', '撿裐01擓�'); -QUERY: vacuum 撏獡擤撗侩摼�; -QUERY: select * from 撏獡擤撗侩摼�; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备 -------------------------+------------+-------------- -撃膿腔撆蛽叼摻簱敲摲箵捞|撗01撨� | -撃膿腔撆蛽弊摲侨摻� |撦翨10擇� | -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | +create table 撏獡擤撗侩摼� (摽霌绢 text, 撦聯拙撃趽靛 varchar, 摵駬绊1A摱髶备 char(16)) +create index 撏獡擤撗侩摼頸ndex1 on 撏獡擤撗侩摼� using btree (摽霌绢) +create index 撏獡擤撗侩摼頸ndex2 on 撏獡擤撗侩摼� using hash (撦聯拙撃趽靛) +insert into 撏獡擤撗侩摼� values('撃膿腔撆蛽叼摻簱敲摲箵捞', '撗01撨�') +insert into 撏獡擤撗侩摼� values('撃膿腔撆蛽弊摲侨摻�', '撦翨10擇�') +insert into 撏獡擤撗侩摼� values('撃膿腔撆蛽橇摲螕弊摲赣', '撿裐01擓�') +vacuum 撏獡擤撗侩摼� +select * from 撏獡擤撗侩摼� + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 +--------------------------+--------------+---------------- + 撃膿腔撆蛽叼摻簱敲摲箵捞 | 撗01撨� | + 撃膿腔撆蛽弊摲侨摻� | 撦翨10擇� | + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | (3 rows) -QUERY: select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 = '撿裐01擓�'; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备 -------------------------+------------+-------------- -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | +select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 = '撿裐01擓�' + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 +--------------------------+--------------+---------------- + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | (1 row) -QUERY: select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 ~* '撿褄01擓�'; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备 -------------------------+------------+-------------- -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | +select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 ~* '撿褄01擓�' + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 +--------------------------+--------------+---------------- + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | (1 row) -QUERY: select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 like '_Z01_'; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备 -------------------------+------------+-------------- -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | +select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 like '_Z01_' + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 +--------------------------+--------------+---------------- + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | (1 row) -QUERY: select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 like '_Z%'; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备 -------------------------+------------+-------------- -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | +select * from 撏獡擤撗侩摼� where 撦聯拙撃趽靛 like '_Z%' + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 +--------------------------+--------------+---------------- + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | (1 row) -QUERY: select * from 撏獡擤撗侩摼� where 摽霌绢 ~ '撃膿腔撆蚚摰饟弊]'; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备 -------------------------+------------+-------------- -撃膿腔撆蛽叼摻簱敲摲箵捞|撗01撨� | -撃膿腔撆蛽弊摲侨摻� |撦翨10擇� | +select * from 撏獡擤撗侩摼� where 摽霌绢 ~ '撃膿腔撆蚚摰饟弊]' + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 +--------------------------+--------------+---------------- + 撃膿腔撆蛽叼摻簱敲摲箵捞 | 撗01撨� | + 撃膿腔撆蛽弊摲侨摻� | 撦翨10擇� | (2 rows) -QUERY: select * from 撏獡擤撗侩摼� where 摽霌绢 ~* '撃膿腔撆蚚摰饟弊]'; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备 -------------------------+------------+-------------- -撃膿腔撆蛽叼摻簱敲摲箵捞|撗01撨� | -撃膿腔撆蛽弊摲侨摻� |撦翨10擇� | +select * from 撏獡擤撗侩摼� where 摽霌绢 ~* '撃膿腔撆蚚摰饟弊]' + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 +--------------------------+--------------+---------------- + 撃膿腔撆蛽叼摻簱敲摲箵捞 | 撗01撨� | + 撃膿腔撆蛽弊摲侨摻� | 撦翨10擇� | (2 rows) -QUERY: select *,character_length(摽霌绢) from 撏獡擤撗侩摼�; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备|length -------------------------+------------+--------------+------ -撃膿腔撆蛽叼摻簱敲摲箵捞|撗01撨� | | 8 -撃膿腔撆蛽弊摲侨摻� |撦翨10擇� | | 7 -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | | 8 +select *,character_length(摽霌绢) from 撏獡擤撗侩摼� + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 | length +--------------------------+--------------+----------------+-------- + 撃膿腔撆蛽叼摻簱敲摲箵捞 | 撗01撨� | | 8 + 撃膿腔撆蛽弊摲侨摻� | 撦翨10擇� | | 7 + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | | 8 (3 rows) -QUERY: select *,octet_length(摽霌绢) from 撏獡擤撗侩摼�; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备|octet_length -------------------------+------------+--------------+------------ -撃膿腔撆蛽叼摻簱敲摲箵捞|撗01撨� | | 24 -撃膿腔撆蛽弊摲侨摻� |撦翨10擇� | | 21 -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | | 24 +select *,octet_length(摽霌绢) from 撏獡擤撗侩摼� + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 | octet_length +--------------------------+--------------+----------------+-------------- + 撃膿腔撆蛽叼摻簱敲摲箵捞 | 撗01撨� | | 24 + 撃膿腔撆蛽弊摲侨摻� | 撦翨10擇� | | 21 + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | | 24 (3 rows) -QUERY: select *,position('摰�' in 摽霌绢) from 撏獡擤撗侩摼�; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备|strpos -------------------------+------------+--------------+------ -撃膿腔撆蛽叼摻簱敲摲箵捞|撗01撨� | | 4 -撃膿腔撆蛽弊摲侨摻� |撦翨10擇� | | 0 -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | | 0 +select *,position('摰�' in 摽霌绢) from 撏獡擤撗侩摼� + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 | strpos +--------------------------+--------------+----------------+-------- + 撃膿腔撆蛽叼摻簱敲摲箵捞 | 撗01撨� | | 4 + 撃膿腔撆蛽弊摲侨摻� | 撦翨10擇� | | 0 + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | | 0 (3 rows) -QUERY: select *,substring(摽霌绢 from 3 for 4) from 撏獡擤撗侩摼�; -摽霌绢 |撦聯拙撃趽靛|摵駬绊1a摱髶备|substr -------------------------+------------+--------------+------------ -撃膿腔撆蛽叼摻簱敲摲箵捞|撗01撨� | |撆蛽叼摻簱敲 -撃膿腔撆蛽弊摲侨摻� |撦翨10擇� | |撆蛽弊摲侨 -撃膿腔撆蛽橇摲螕弊摲赣|撿裐01擓� | |撆蛽橇摲螕弊 +select *,substring(摽霌绢 from 3 for 4) from 撏獡擤撗侩摼� + 摽霌绢 | 撦聯拙撃趽靛 | 摵駬绊1a摱髶备 | substr +--------------------------+--------------+----------------+-------------- + 撃膿腔撆蛽叼摻簱敲摲箵捞 | 撗01撨� | | 撆蛽叼摻簱敲 + 撃膿腔撆蛽弊摲侨摻� | 撦翨10擇� | | 撆蛽弊摲侨 + 撃膿腔撆蛽橇摲螕弊摲赣 | 撿裐01擓� | | 撆蛽橇摲螕弊 (3 rows) -QUERY: drop table test; +drop table test ERROR: Relation 'test' does not exist -QUERY: create table test (t text); -QUERY: insert into test values('ENGLISH'); -QUERY: insert into test values('FRAN伹AIS'); -QUERY: insert into test values('ESPA佈OL'); -QUERY: insert into test values('佂SLENSKA'); -QUERY: insert into test values('ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA'); -QUERY: vacuum test; -QUERY: select * from test; -t ------------------------------------- -ENGLISH -FRAN伹AIS -ESPA佈OL -佂SLENSKA -ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA +create table test (t text) +insert into test values('ENGLISH') +insert into test values('FRAN伹AIS') +insert into test values('ESPA佈OL') +insert into test values('佂SLENSKA') +insert into test values('ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA') +vacuum test +select * from test + t +-------------------------------------- + ENGLISH + FRAN伹AIS + ESPA佈OL + 佂SLENSKA + ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA (5 rows) -QUERY: select * from test where t = 'ESPA佈OL'; -t --------- -ESPA佈OL +select * from test where t = 'ESPA佈OL' + t +---------- + ESPA佈OL (1 row) -QUERY: select * from test where t ~* 'espa佈ol'; -t ------------------------------------- -ESPA佈OL -ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA +select * from test where t ~* 'espa佈ol' + t +-------------------------------------- + ESPA佈OL + ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA (2 rows) -QUERY: select *,character_length(t) from test; -t |length -------------------------------------+------ -ENGLISH | 7 -FRAN伹AIS | 8 -ESPA佈OL | 7 -佂SLENSKA | 8 -ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA| 33 +select *,character_length(t) from test + t | length +--------------------------------------+-------- + ENGLISH | 7 + FRAN伹AIS | 8 + ESPA佈OL | 7 + 佂SLENSKA | 8 + ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA | 33 (5 rows) -QUERY: select *,octet_length(t) from test; -t |octet_length -------------------------------------+------------ -ENGLISH | 7 -FRAN伹AIS | 9 -ESPA佈OL | 8 -佂SLENSKA | 9 -ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA| 36 +select *,octet_length(t) from test + t | octet_length +--------------------------------------+-------------- + ENGLISH | 7 + FRAN伹AIS | 9 + ESPA佈OL | 8 + 佂SLENSKA | 9 + ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA | 36 (5 rows) -QUERY: select *,position('L' in t) from test; -t |strpos -------------------------------------+------ -ENGLISH | 4 -FRAN伹AIS | 0 -ESPA佈OL | 7 -佂SLENSKA | 3 -ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA| 4 +select *,position('L' in t) from test + t | strpos +--------------------------------------+-------- + ENGLISH | 4 + FRAN伹AIS | 0 + ESPA佈OL | 7 + 佂SLENSKA | 3 + ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA | 4 (5 rows) -QUERY: select *,substring(t from 3 for 4) from test; -t |substr -------------------------------------+------ -ENGLISH |GLIS -FRAN伹AIS |AN伹A -ESPA佈OL |PA佈O -佂SLENSKA |LENS -ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA|GLIS +select *,substring(t from 3 for 4) from test + t | substr +--------------------------------------+-------- + ENGLISH | GLIS + FRAN伹AIS | AN伹A + ESPA佈OL | PA佈O + 佂SLENSKA | LENS + ENGLISH FRAN伹AIS ESPA佈OL 佂SLENSKA | GLIS (5 rows) diff --git a/src/test/mb/expected/sjis.out b/src/test/mb/expected/sjis.out index 9dadee10e7f9a39b6571ef06159b4a273167b860..0a63fc6321a7013a0c12344cd15eabf361e2ac67 100644 --- a/src/test/mb/expected/sjis.out +++ b/src/test/mb/expected/sjis.out @@ -1,12 +1,12 @@ -drop table 寁嶼婡梡岅; -create table 寁嶼婡梡岅 (梡岅 text, 暘椶僐乕僪 varchar, 旛峫1A偩傛 char(16)); -create index 寁嶼婡梡岅index1 on 寁嶼婡梡岅 using btree (梡岅); -create index 寁嶼婡梡岅index2 on 寁嶼婡梡岅 using hash (暘椶僐乕僪); -insert into 寁嶼婡梡岅 values('僐儞僺儏乕僞僨傿僗僾儗僀','婡A01忋'); -insert into 寁嶼婡梡岅 values('僐儞僺儏乕僞僌儔僼傿僢僋僗','暘B10拞'); -insert into 寁嶼婡梡岅 values('僐儞僺儏乕僞僾儘僌儔儅乕','恖Z01壓'); -vacuum 寁嶼婡梡岅; -select * from 寁嶼婡梡岅; +drop table 寁嶼婡梡岅 +create table 寁嶼婡梡岅 (梡岅 text, 暘椶僐乕僪 varchar, 旛峫1A偩傛 char(16)) +create index 寁嶼婡梡岅index1 on 寁嶼婡梡岅 using btree (梡岅) +create index 寁嶼婡梡岅index2 on 寁嶼婡梡岅 using hash (暘椶僐乕僪) +insert into 寁嶼婡梡岅 values('僐儞僺儏乕僞僨傿僗僾儗僀','婡A01忋') +insert into 寁嶼婡梡岅 values('僐儞僺儏乕僞僌儔僼傿僢僋僗','暘B10拞') +insert into 寁嶼婡梡岅 values('僐儞僺儏乕僞僾儘僌儔儅乕','恖Z01壓') +vacuum 寁嶼婡梡岅 +select * from 寁嶼婡梡岅 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 ----------------------------+------------+------------ 僐儞僺儏乕僞僨傿僗僾儗僀 | 婡A01忋 | @@ -14,45 +14,45 @@ select * from 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | (3 rows) -select * from 寁嶼婡梡岅 where 暘椶僐乕僪 = '恖Z01壓'; +select * from 寁嶼婡梡岅 where 暘椶僐乕僪 = '恖Z01壓' 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 --------------------------+------------+------------ 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | (1 row) -select * from 寁嶼婡梡岅 where 暘椶僐乕僪 ~* '恖z01壓'; +select * from 寁嶼婡梡岅 where 暘椶僐乕僪 ~* '恖z01壓' 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 --------------------------+------------+------------ 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | (1 row) -select * from 寁嶼婡梡岅 where 暘椶僐乕僪 like '_Z01_'; +select * from 寁嶼婡梡岅 where 暘椶僐乕僪 like '_Z01_' 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 --------------------------+------------+------------ 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | (1 row) -select * from 寁嶼婡梡岅 where 暘椶僐乕僪 like '_Z%'; +select * from 寁嶼婡梡岅 where 暘椶僐乕僪 like '_Z%' 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 --------------------------+------------+------------ 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | (1 row) -select * from 寁嶼婡梡岅 where 梡岅 ~ '僐儞僺儏乕僞[僨僌]'; +select * from 寁嶼婡梡岅 where 梡岅 ~ '僐儞僺儏乕僞[僨僌]' 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 ----------------------------+------------+------------ 僐儞僺儏乕僞僨傿僗僾儗僀 | 婡A01忋 | 僐儞僺儏乕僞僌儔僼傿僢僋僗 | 暘B10拞 | (2 rows) -select * from 寁嶼婡梡岅 where 梡岅 ~* '僐儞僺儏乕僞[僨僌]'; +select * from 寁嶼婡梡岅 where 梡岅 ~* '僐儞僺儏乕僞[僨僌]' 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 ----------------------------+------------+------------ 僐儞僺儏乕僞僨傿僗僾儗僀 | 婡A01忋 | 僐儞僺儏乕僞僌儔僼傿僢僋僗 | 暘B10拞 | (2 rows) -select *,character_length(梡岅) from 寁嶼婡梡岅; +select *,character_length(梡岅) from 寁嶼婡梡岅 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 | length ----------------------------+------------+------------+-------- 僐儞僺儏乕僞僨傿僗僾儗僀 | 婡A01忋 | | 12 @@ -60,7 +60,7 @@ select *,character_length( 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | | 12 (3 rows) -select *,octet_length(梡岅) from 寁嶼婡梡岅; +select *,octet_length(梡岅) from 寁嶼婡梡岅 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 | octet_length ----------------------------+------------+------------+-------------- 僐儞僺儏乕僞僨傿僗僾儗僀 | 婡A01忋 | | 24 @@ -68,7 +68,7 @@ select *,octet_length( 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | | 24 (3 rows) -select *,position('僨' in 梡岅) from 寁嶼婡梡岅; +select *,position('僨' in 梡岅) from 寁嶼婡梡岅 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 | strpos ----------------------------+------------+------------+-------- 僐儞僺儏乕僞僨傿僗僾儗僀 | 婡A01忋 | | 7 @@ -76,7 +76,7 @@ select *,position(' 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | | 0 (3 rows) -select *,substring(梡岅 from 10 for 4) from 寁嶼婡梡岅; +select *,substring(梡岅 from 10 for 4) from 寁嶼婡梡岅 梡岅 | 暘椶僐乕僪 | 旛峫1a偩傛 | substr ----------------------------+------------+------------+---------- 僐儞僺儏乕僞僨傿僗僾儗僀 | 婡A01忋 | | 僾儗僀 @@ -84,7 +84,7 @@ select *,substring( 僐儞僺儏乕僞僾儘僌儔儅乕 | 恖Z01壓 | | 儔儅乕 (3 rows) -copy 寁嶼婡梡岅 to stdout; +copy 寁嶼婡梡岅 to stdout 僐儞僺儏乕僞僨傿僗僾儗僀 婡A01忋 \N 僐儞僺儏乕僞僌儔僼傿僢僋僗 暘B10拞 \N 僐儞僺儏乕僞僾儘僌儔儅乕 恖Z01壓 \N diff --git a/src/test/mb/expected/unicode.out b/src/test/mb/expected/unicode.out index 4f619badd7bf2b0cfb80006259ed1430df35959d..45f565ca67a193a0476138e6ea5647f3493beb4a 100644 --- a/src/test/mb/expected/unicode.out +++ b/src/test/mb/expected/unicode.out @@ -1,87 +1,87 @@ -QUERY: drop table 瑷堢畻姗熺敤瑾�; +drop table 瑷堢畻姗熺敤瑾� ERROR: Relation '瑷堢畻姗熺敤瑾�' does not exist -QUERY: create table 瑷堢畻姗熺敤瑾� (鐢ㄨ獮 text, 鍒嗛銈炽兗銉� varchar, 鍌欒€�1A銇犮倛 char(16)); -QUERY: create index 瑷堢畻姗熺敤瑾瀒ndex1 on 瑷堢畻姗熺敤瑾� using btree (鐢ㄨ獮); -QUERY: create index 瑷堢畻姗熺敤瑾瀒ndex2 on 瑷堢畻姗熺敤瑾� using hash (鍒嗛銈炽兗銉�); -QUERY: insert into 瑷堢畻姗熺敤瑾� values('銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆','姗烝01涓�'); -QUERY: insert into 瑷堢畻姗熺敤瑾� values('銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈�','鍒咮10涓�'); -QUERY: insert into 瑷堢畻姗熺敤瑾� values('銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗','浜篫01涓�'); -QUERY: vacuum 瑷堢畻姗熺敤瑾�; -QUERY: select * from 瑷堢畻姗熺敤瑾�; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛 ----------------------------------------+---------------+-------------- -銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 |姗烝01涓� | -銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈箌鍒咮10涓� | -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 |浜篫01涓� | +create table 瑷堢畻姗熺敤瑾� (鐢ㄨ獮 text, 鍒嗛銈炽兗銉� varchar, 鍌欒€�1A銇犮倛 char(16)) +create index 瑷堢畻姗熺敤瑾瀒ndex1 on 瑷堢畻姗熺敤瑾� using btree (鐢ㄨ獮) +create index 瑷堢畻姗熺敤瑾瀒ndex2 on 瑷堢畻姗熺敤瑾� using hash (鍒嗛銈炽兗銉�) +insert into 瑷堢畻姗熺敤瑾� values('銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆','姗烝01涓�') +insert into 瑷堢畻姗熺敤瑾� values('銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈�','鍒咮10涓�') +insert into 瑷堢畻姗熺敤瑾� values('銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗','浜篫01涓�') +vacuum 瑷堢畻姗熺敤瑾� +select * from 瑷堢畻姗熺敤瑾� + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 +-----------------------------------------+-----------------+---------------- + 銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 | 姗烝01涓� | + 銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈� | 鍒咮10涓� | + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | (3 rows) -QUERY: select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� = '浜篫01涓�'; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛 -------------------------------------+---------------+-------------- -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗|浜篫01涓� | +select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� = '浜篫01涓�' + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 +--------------------------------------+-----------------+---------------- + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | (1 row) -QUERY: select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� ~* '浜簔01涓�'; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛 -------------------------------------+---------------+-------------- -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗|浜篫01涓� | +select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� ~* '浜簔01涓�' + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 +--------------------------------------+-----------------+---------------- + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | (1 row) -QUERY: select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� like '_Z01_'; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛 -------------------------------------+---------------+-------------- -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗|浜篫01涓� | +select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� like '_Z01_' + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 +--------------------------------------+-----------------+---------------- + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | (1 row) -QUERY: select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� like '_Z%'; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛 -------------------------------------+---------------+-------------- -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗|浜篫01涓� | +select * from 瑷堢畻姗熺敤瑾� where 鍒嗛銈炽兗銉� like '_Z%' + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 +--------------------------------------+-----------------+---------------- + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | (1 row) -QUERY: select * from 瑷堢畻姗熺敤瑾� where 鐢ㄨ獮 ~ '銈炽兂銉斻儱銉笺偪[銉囥偘]'; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛 ----------------------------------------+---------------+-------------- -銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 |姗烝01涓� | -銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈箌鍒咮10涓� | +select * from 瑷堢畻姗熺敤瑾� where 鐢ㄨ獮 ~ '銈炽兂銉斻儱銉笺偪[銉囥偘]' + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 +-----------------------------------------+-----------------+---------------- + 銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 | 姗烝01涓� | + 銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈� | 鍒咮10涓� | (2 rows) -QUERY: select * from 瑷堢畻姗熺敤瑾� where 鐢ㄨ獮 ~* '銈炽兂銉斻儱銉笺偪[銉囥偘]'; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛 ----------------------------------------+---------------+-------------- -銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 |姗烝01涓� | -銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈箌鍒咮10涓� | +select * from 瑷堢畻姗熺敤瑾� where 鐢ㄨ獮 ~* '銈炽兂銉斻儱銉笺偪[銉囥偘]' + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 +-----------------------------------------+-----------------+---------------- + 銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 | 姗烝01涓� | + 銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈� | 鍒咮10涓� | (2 rows) -QUERY: select *,character_length(鐢ㄨ獮) from 瑷堢畻姗熺敤瑾�; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛|length ----------------------------------------+---------------+--------------+------ -銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 |姗烝01涓� | | 12 -銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈箌鍒咮10涓� | | 13 -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 |浜篫01涓� | | 12 +select *,character_length(鐢ㄨ獮) from 瑷堢畻姗熺敤瑾� + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 | length +-----------------------------------------+-----------------+----------------+-------- + 銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 | 姗烝01涓� | | 12 + 銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈� | 鍒咮10涓� | | 13 + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | | 12 (3 rows) -QUERY: select *,octet_length(鐢ㄨ獮) from 瑷堢畻姗熺敤瑾�; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛|octet_length ----------------------------------------+---------------+--------------+------------ -銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 |姗烝01涓� | | 36 -銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈箌鍒咮10涓� | | 39 -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 |浜篫01涓� | | 36 +select *,octet_length(鐢ㄨ獮) from 瑷堢畻姗熺敤瑾� + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 | octet_length +-----------------------------------------+-----------------+----------------+-------------- + 銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 | 姗烝01涓� | | 36 + 銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈� | 鍒咮10涓� | | 39 + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | | 36 (3 rows) -QUERY: select *,position('銉�' in 鐢ㄨ獮) from 瑷堢畻姗熺敤瑾�; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛|strpos ----------------------------------------+---------------+--------------+------ -銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 |姗烝01涓� | | 7 -銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈箌鍒咮10涓� | | 0 -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 |浜篫01涓� | | 0 +select *,position('銉�' in 鐢ㄨ獮) from 瑷堢畻姗熺敤瑾� + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 | strpos +-----------------------------------------+-----------------+----------------+-------- + 銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 | 姗烝01涓� | | 7 + 銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈� | 鍒咮10涓� | | 0 + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | | 0 (3 rows) -QUERY: select *,substring(鐢ㄨ獮 from 10 for 4) from 瑷堢畻姗熺敤瑾�; -鐢ㄨ獮 |鍒嗛銈炽兗銉墊鍌欒€�1a銇犮倛|substr ----------------------------------------+---------------+--------------+------------ -銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 |姗烝01涓� | |銉椼儸銈� -銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈箌鍒咮10涓� | |銈c儍銈偣 -銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 |浜篫01涓� | |銉┿優銉� +select *,substring(鐢ㄨ獮 from 10 for 4) from 瑷堢畻姗熺敤瑾� + 鐢ㄨ獮 | 鍒嗛銈炽兗銉� | 鍌欒€�1a銇犮倛 | substr +-----------------------------------------+-----------------+----------------+-------------- + 銈炽兂銉斻儱銉笺偪銉囥偅銈广儣銉偆 | 姗烝01涓� | | 銉椼儸銈� + 銈炽兂銉斻儱銉笺偪銈般儵銉曘偅銉冦偗銈� | 鍒咮10涓� | | 銈c儍銈偣 + 銈炽兂銉斻儱銉笺偪銉椼儹銈般儵銉炪兗 | 浜篫01涓� | | 銉┿優銉� (3 rows)