From: Tatsuo Ishii Date: Sun, 27 Feb 2000 10:21:16 +0000 (+0000) Subject: Update expected files due to the psql format change X-Git-Tag: REL7_0~528 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97e38d32b8b618236a9690b9ee820ab8cc94d0ea;p=postgresql Update expected files due to the psql format change --- diff --git a/src/test/mb/expected/big5.out b/src/test/mb/expected/big5.out index 0ca86167ec..702579eeba 100644 --- a/src/test/mb/expected/big5.out +++ b/src/test/mb/expected/big5.out @@ -1,84 +1,84 @@ -QUERY: drop table ¼t°Ó¸ê®Æ; -QUERY: create table ¼t°Ó¸ê®Æ (¦æ·~§O text, ¤½¥q©ïÀY varchar, ¦a§} varchar(16)); -QUERY: create index ¼t°Ó¸ê®Æindex1 on ¼t°Ó¸ê®Æ using btree (¦æ·~§O); -QUERY: create index ¼t°Ó¸ê®Æindex2 on ¼t°Ó¸ê®Æ using hash (¤½¥q©ïÀY); -QUERY: insert into ¼t°Ó¸ê®Æ values ('¹q¸£·~', '¹F¹F¬ì§Þ', '¥_A01¤¯'); -QUERY: insert into ¼t°Ó¸ê®Æ values ('»s³y·~', '°]·½¦³­­¤½¥q', '¤¤B10¤¤'); -QUERY: insert into ¼t°Ó¸ê®Æ values ('À\¶¼·~', '¬ü¨ýªÑ¥÷¦³­­¤½¥q', '°ªZ01¤E'); -QUERY: vacuum ¼t°Ó¸ê®Æ; -QUERY: select * from ¼t°Ó¸ê®Æ; -¦æ·~§O|¤½¥q©ïÀY |¦a§} -------+----------------+------- -¹q¸£·~|¹F¹F¬ì§Þ |¥_A01¤¯ -»s³y·~|°]·½¦³­­¤½¥q |¤¤B10¤¤ -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E +drop table ¼t°Ó¸ê®Æ +create table ¼t°Ó¸ê®Æ (¦æ·~§O text, ¤½¥q©ïÀY varchar, ¦a§} varchar(16)) +create index ¼t°Ó¸ê®Æindex1 on ¼t°Ó¸ê®Æ using btree (¦æ·~§O) +create index ¼t°Ó¸ê®Æindex2 on ¼t°Ó¸ê®Æ using hash (¤½¥q©ïÀY) +insert into ¼t°Ó¸ê®Æ values ('¹q¸£·~', '¹F¹F¬ì§Þ', '¥_A01¤¯') +insert into ¼t°Ó¸ê®Æ values ('»s³y·~', '°]·½¦³­­¤½¥q', '¤¤B10¤¤') +insert into ¼t°Ó¸ê®Æ values ('À\¶¼·~', '¬ü¨ýªÑ¥÷¦³­­¤½¥q', '°ªZ01¤E') +vacuum ¼t°Ó¸ê®Æ +select * from ¼t°Ó¸ê®Æ + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} +--------+------------------+--------- + ¹q¸£·~ | ¹F¹F¬ì§Þ | ¥_A01¤¯ + »s³y·~ | °]·½¦³­­¤½¥q | ¤¤B10¤¤ + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E (3 rows) -QUERY: select * from ¼t°Ó¸ê®Æ where ¦a§} = '°ªZ01¤E'; -¦æ·~§O|¤½¥q©ïÀY |¦a§} -------+----------------+------- -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E +select * from ¼t°Ó¸ê®Æ where ¦a§} = '°ªZ01¤E' + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} +--------+------------------+--------- + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E (1 row) -QUERY: select * from ¼t°Ó¸ê®Æ where ¦a§} ~* '°ªz01¤E'; -¦æ·~§O|¤½¥q©ïÀY |¦a§} -------+----------------+------- -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E +select * from ¼t°Ó¸ê®Æ where ¦a§} ~* '°ªz01¤E' + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} +--------+------------------+--------- + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E (1 row) -QUERY: select * from ¼t°Ó¸ê®Æ where ¦a§} like '_Z01_'; -¦æ·~§O|¤½¥q©ïÀY |¦a§} -------+----------------+------- -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E +select * from ¼t°Ó¸ê®Æ where ¦a§} like '_Z01_' + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} +--------+------------------+--------- + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E (1 row) -QUERY: select * from ¼t°Ó¸ê®Æ where ¦a§} like '_Z%'; -¦æ·~§O|¤½¥q©ïÀY |¦a§} -------+----------------+------- -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E +select * from ¼t°Ó¸ê®Æ where ¦a§} like '_Z%' + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} +--------+------------------+--------- + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E (1 row) -QUERY: select * from ¼t°Ó¸ê®Æ where ¤½¥q©ïÀY ~ '¹F¹F¬ì[±H°O§Þ]'; -¦æ·~§O|¤½¥q©ïÀY|¦a§} -------+--------+------- -¹q¸£·~|¹F¹F¬ì§Þ|¥_A01¤¯ +select * from ¼t°Ó¸ê®Æ where ¤½¥q©ïÀY ~ '¹F¹F¬ì[±H°O§Þ]' + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} +--------+----------+--------- + ¹q¸£·~ | ¹F¹F¬ì§Þ | ¥_A01¤¯ (1 row) -QUERY: select * from ¼t°Ó¸ê®Æ where ¤½¥q©ïÀY ~* '¹F¹F¬ì[±H°O§Þ]'; -¦æ·~§O|¤½¥q©ïÀY|¦a§} -------+--------+------- -¹q¸£·~|¹F¹F¬ì§Þ|¥_A01¤¯ +select * from ¼t°Ó¸ê®Æ where ¤½¥q©ïÀY ~* '¹F¹F¬ì[±H°O§Þ]' + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} +--------+----------+--------- + ¹q¸£·~ | ¹F¹F¬ì§Þ | ¥_A01¤¯ (1 row) -QUERY: select *, character_length(¦æ·~§O) from ¼t°Ó¸ê®Æ; -¦æ·~§O|¤½¥q©ïÀY |¦a§} |length -------+----------------+-------+------ -¹q¸£·~|¹F¹F¬ì§Þ |¥_A01¤¯| 3 -»s³y·~|°]·½¦³­­¤½¥q |¤¤B10¤¤| 3 -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E| 3 +select *, character_length(¦æ·~§O) from ¼t°Ó¸ê®Æ + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} | length +--------+------------------+---------+-------- + ¹q¸£·~ | ¹F¹F¬ì§Þ | ¥_A01¤¯ | 3 + »s³y·~ | °]·½¦³­­¤½¥q | ¤¤B10¤¤ | 3 + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E | 3 (3 rows) -QUERY: select *, octet_length(¦æ·~§O) from ¼t°Ó¸ê®Æ; -¦æ·~§O|¤½¥q©ïÀY |¦a§} |octet_length -------+----------------+-------+------------ -¹q¸£·~|¹F¹F¬ì§Þ |¥_A01¤¯| 6 -»s³y·~|°]·½¦³­­¤½¥q |¤¤B10¤¤| 6 -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E| 6 +select *, octet_length(¦æ·~§O) from ¼t°Ó¸ê®Æ + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} | octet_length +--------+------------------+---------+-------------- + ¹q¸£·~ | ¹F¹F¬ì§Þ | ¥_A01¤¯ | 6 + »s³y·~ | °]·½¦³­­¤½¥q | ¤¤B10¤¤ | 6 + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E | 6 (3 rows) -QUERY: select *, position('¦³­­' in ¤½¥q©ïÀY) from ¼t°Ó¸ê®Æ; -¦æ·~§O|¤½¥q©ïÀY |¦a§} |strpos -------+----------------+-------+------ -¹q¸£·~|¹F¹F¬ì§Þ |¥_A01¤¯| 0 -»s³y·~|°]·½¦³­­¤½¥q |¤¤B10¤¤| 3 -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E| 5 +select *, position('¦³­­' in ¤½¥q©ïÀY) from ¼t°Ó¸ê®Æ + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} | strpos +--------+------------------+---------+-------- + ¹q¸£·~ | ¹F¹F¬ì§Þ | ¥_A01¤¯ | 0 + »s³y·~ | °]·½¦³­­¤½¥q | ¤¤B10¤¤ | 3 + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E | 5 (3 rows) -QUERY: select *, substring(¤½¥q©ïÀY from 3 for 6 ) from ¼t°Ó¸ê®Æ; -¦æ·~§O|¤½¥q©ïÀY |¦a§} |substr -------+----------------+-------+------------ -¹q¸£·~|¹F¹F¬ì§Þ |¥_A01¤¯|¬ì§Þ -»s³y·~|°]·½¦³­­¤½¥q |¤¤B10¤¤|¦³­­¤½¥q -À\¶¼·~|¬ü¨ýªÑ¥÷¦³­­¤½¥q|°ªZ01¤E|ªÑ¥÷¦³­­¤½¥q +select *, substring(¤½¥q©ïÀY from 3 for 6 ) from ¼t°Ó¸ê®Æ + ¦æ·~§O | ¤½¥q©ïÀY | ¦a§} | substr +--------+------------------+---------+-------------- + ¹q¸£·~ | ¹F¹F¬ì§Þ | ¥_A01¤¯ | ¬ì§Þ + »s³y·~ | °]·½¦³­­¤½¥q | ¤¤B10¤¤ | ¦³­­¤½¥q + À\¶¼·~ | ¬ü¨ýªÑ¥÷¦³­­¤½¥q | °ªZ01¤E | ªÑ¥÷¦³­­¤½¥q (3 rows) diff --git a/src/test/mb/expected/euc_cn.out b/src/test/mb/expected/euc_cn.out index b9944f48fd..93ff30c25a 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 6f38e998a8..838b0a8363 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 9d3ca8ce3d..7899344928 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 a7d2b94069..4e1e588295 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 09f5489ee5..6df80473e6 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 ’·×’»»’µ¡’Íђ¸ì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’¾å | | 12 -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹|’ʬB10’Ãæ | | 13 -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ |’¿ÍZ01’²¼ | | 12 +select *,character_length(’Íђ¸ì) from ’·×’»»’µ¡’Íђ¸ì + ’Íђ¸ì | ’ʬ’Îà’¥³’¡¼’¥É | ’È÷’¹Í1a’¤À’¤è | length +-----------------------------------------+-----------------+----------------+-------- + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥Ç’¥£’¥¹’¥×’¥ì’¥¤ | ’µ¡A01’¾å | | 12 + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹ | ’ʬB10’Ãæ | | 13 + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ | ’¿ÍZ01’²¼ | | 12 (3 rows) -QUERY: select *,octet_length(’Íђ¸ì) from ’·×’»»’µ¡’Íђ¸ì; -’Íђ¸ì |’ʬ’Îà’¥³’¡¼’¥É|’È÷’¹Í1a’¤À’¤è|octet_length ----------------------------------------+---------------+--------------+------------ -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥Ç’¥£’¥¹’¥×’¥ì’¥¤ |’µ¡A01’¾å | | 36 -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹|’ʬB10’Ãæ | | 39 -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ |’¿ÍZ01’²¼ | | 36 +select *,octet_length(’Íђ¸ì) from ’·×’»»’µ¡’Íђ¸ì + ’Íђ¸ì | ’ʬ’Îà’¥³’¡¼’¥É | ’È÷’¹Í1a’¤À’¤è | octet_length +-----------------------------------------+-----------------+----------------+-------------- + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥Ç’¥£’¥¹’¥×’¥ì’¥¤ | ’µ¡A01’¾å | | 36 + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹ | ’ʬB10’Ãæ | | 39 + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ | ’¿ÍZ01’²¼ | | 36 (3 rows) -QUERY: select *,position('’¥Ç' in ’Íђ¸ì) from ’·×’»»’µ¡’Íђ¸ì; -’Íђ¸ì |’ʬ’Îà’¥³’¡¼’¥É|’È÷’¹Í1a’¤À’¤è|strpos ----------------------------------------+---------------+--------------+------ -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥Ç’¥£’¥¹’¥×’¥ì’¥¤ |’µ¡A01’¾å | | 7 -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹|’ʬB10’Ãæ | | 0 -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ |’¿ÍZ01’²¼ | | 0 +select *,position('’¥Ç' in ’Íђ¸ì) from ’·×’»»’µ¡’Íђ¸ì + ’Íђ¸ì | ’ʬ’Îà’¥³’¡¼’¥É | ’È÷’¹Í1a’¤À’¤è | strpos +-----------------------------------------+-----------------+----------------+-------- + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥Ç’¥£’¥¹’¥×’¥ì’¥¤ | ’µ¡A01’¾å | | 7 + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹ | ’ʬB10’Ãæ | | 0 + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ | ’¿ÍZ01’²¼ | | 0 (3 rows) -QUERY: select *,substring(’Íђ¸ì from 10 for 4) from ’·×’»»’µ¡’Íђ¸ì; -’Íђ¸ì |’ʬ’Îà’¥³’¡¼’¥É|’È÷’¹Í1a’¤À’¤è|substr ----------------------------------------+---------------+--------------+------------ -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥Ç’¥£’¥¹’¥×’¥ì’¥¤ |’µ¡A01’¾å | |’¥×’¥ì’¥¤ -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹|’ʬB10’Ãæ | |’¥£’¥Ã’¥¯’¥¹ -’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ |’¿ÍZ01’²¼ | |’¥é’¥Þ’¡¼ +select *,substring(’Íђ¸ì from 10 for 4) from ’·×’»»’µ¡’Íђ¸ì + ’Íђ¸ì | ’ʬ’Îà’¥³’¡¼’¥É | ’È÷’¹Í1a’¤À’¤è | substr +-----------------------------------------+-----------------+----------------+-------------- + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥Ç’¥£’¥¹’¥×’¥ì’¥¤ | ’µ¡A01’¾å | | ’¥×’¥ì’¥¤ + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥°’¥é’¥Õ’¥£’¥Ã’¥¯’¥¹ | ’ʬB10’Ãæ | | ’¥£’¥Ã’¥¯’¥¹ + ’¥³’¥ó’¥Ô’¥å’¡¼’¥¿’¥×’¥í’¥°’¥é’¥Þ’¡¼ | ’¿ÍZ01’²¼ | | ’¥é’¥Þ’¡¼ (3 rows) -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‘ÉÏ| | 15 -‘µç‘Äԑͼ‘ÐÎ |‘·ÖB01‘ÖÐ| | 12 -‘µç‘Äԑ³Ì‘Ðò‘Ô±|‘ÈËZ01‘ÏÂ| | 15 +select *,octet_length(‘Êõ‘Óï) from ‘¼Æ‘Ë㑻ú‘Êõ‘Óï + ‘Êõ‘Óï | ‘·Ö‘Àà‘ºÅ | ‘±¸‘×¢1a | octet_length +-----------------+-----------+----------+-------------- + ‘µç‘ÄԑÏԑʾ‘ÆÁ | ‘»úA01‘ÉÏ | | 15 + ‘µç‘Äԑͼ‘ÐÎ | ‘·ÖB01‘ÖÐ | | 12 + ‘µç‘Äԑ³Ì‘Ðò‘Ô± | ‘ÈËZ01‘Ï | | 15 (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) -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“ß¾ | | 24 -“Äēǻ“Å͓±×“·¡“Çȓ½º |“ÝÂB10“ñé | | 21 -“Äēǻ“Å͓ÇÁ“·Î“±×“·¡“¸Ó|“ìÑZ01“ù» | | 24 +select *,octet_length(“¿ë“¾î) from “ͪ“ß©“Ѧ“¿ë“¾î + “¿ë“¾î | “Ý“׾“Äړµå | “ºñ“°í1a“¶ó“±¸ | octet_length +--------------------------+--------------+----------------+-------------- + “Äēǻ“Å͓µð“½º“ÇÓ·¹“ÀÌ | “ѦA01“ß¾ | | 24 + “Äēǻ“Å͓±×“·¡“Çȓ½º | “ÝÂB10“ñé | | 21 + “Äēǻ“Å͓ÇÁ“·Î“±×“·¡“¸Ó | “ìÑZ01“ù» | | 24 (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) -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 9dadee10e7..0a63fc6321 100644 --- a/src/test/mb/expected/sjis.out +++ b/src/test/mb/expected/sjis.out @@ -1,12 +1,12 @@ -drop table ŒvŽZ‹@—pŒê; -create table ŒvŽZ‹@—pŒê (—pŒê text, •ª—ÞƒR[ƒh varchar, ”õl1A‚¾‚æ char(16)); -create index ŒvŽZ‹@—pŒêindex1 on ŒvŽZ‹@—pŒê using btree (—pŒê); -create index ŒvŽZ‹@—pŒêindex2 on ŒvŽZ‹@—pŒê using hash (•ª—ÞƒR[ƒh); -insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC','‹@A01ã'); -insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX','•ªB10’†'); -insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[','lZ01‰º'); -vacuum ŒvŽZ‹@—pŒê; -select * from ŒvŽZ‹@—pŒê; +drop table ŒvŽZ‹@—pŒê +create table ŒvŽZ‹@—pŒê (—pŒê text, •ª—ÞƒR[ƒh varchar, ”õl1A‚¾‚æ char(16)) +create index ŒvŽZ‹@—pŒêindex1 on ŒvŽZ‹@—pŒê using btree (—pŒê) +create index ŒvŽZ‹@—pŒêindex2 on ŒvŽZ‹@—pŒê using hash (•ª—ÞƒR[ƒh) +insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC','‹@A01ã') +insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX','•ªB10’†') +insert into ŒvŽZ‹@—pŒê values('ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[','lZ01‰º') +vacuum ŒvŽZ‹@—pŒê +select * from ŒvŽZ‹@—pŒê —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ ----------------------------+------------+------------ ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | @@ -14,45 +14,45 @@ select * from ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (3 rows) -select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh = 'lZ01‰º'; +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh = 'lZ01‰º' —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ --------------------------+------------+------------ ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh ~* 'lz01‰º'; +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh ~* 'lz01‰º' —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ --------------------------+------------+------------ ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z01_'; +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z01_' —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ --------------------------+------------+------------ ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z%'; +select * from ŒvŽZ‹@—pŒê where •ª—ÞƒR[ƒh like '_Z%' —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ --------------------------+------------+------------ ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | (1 row) -select * from ŒvŽZ‹@—pŒê where —pŒê ~ 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]'; +select * from ŒvŽZ‹@—pŒê where —pŒê ~ 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]' —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ ----------------------------+------------+------------ ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | (2 rows) -select * from ŒvŽZ‹@—pŒê where —pŒê ~* 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]'; +select * from ŒvŽZ‹@—pŒê where —pŒê ~* 'ƒRƒ“ƒsƒ…[ƒ^[ƒfƒO]' —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ ----------------------------+------------+------------ ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX | •ªB10’† | (2 rows) -select *,character_length(—pŒê) from ŒvŽZ‹@—pŒê; +select *,character_length(—pŒê) from ŒvŽZ‹@—pŒê —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | length ----------------------------+------------+------------+-------- ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | 12 @@ -60,7 +60,7 @@ select *,character_length( ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | 12 (3 rows) -select *,octet_length(—pŒê) from ŒvŽZ‹@—pŒê; +select *,octet_length(—pŒê) from ŒvŽZ‹@—pŒê —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | octet_length ----------------------------+------------+------------+-------------- ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | 24 @@ -68,7 +68,7 @@ select *,octet_length( ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | 24 (3 rows) -select *,position('ƒf' in —pŒê) from ŒvŽZ‹@—pŒê; +select *,position('ƒf' in —pŒê) from ŒvŽZ‹@—pŒê —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | strpos ----------------------------+------------+------------+-------- ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | 7 @@ -76,7 +76,7 @@ select *,position(' ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | 0 (3 rows) -select *,substring(—pŒê from 10 for 4) from ŒvŽZ‹@—pŒê; +select *,substring(—pŒê from 10 for 4) from ŒvŽZ‹@—pŒê —pŒê | •ª—ÞƒR[ƒh | ”õl1a‚¾‚æ | substr ----------------------------+------------+------------+---------- ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC | ‹@A01ã | | ƒvƒŒƒC @@ -84,7 +84,7 @@ select *,substring( ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ | lZ01‰º | | ƒ‰ƒ}[ (3 rows) -copy ŒvŽZ‹@—pŒê to stdout; +copy ŒvŽZ‹@—pŒê to stdout ƒRƒ“ƒsƒ…[ƒ^ƒfƒBƒXƒvƒŒƒC ‹@A01ã \N ƒRƒ“ƒsƒ…[ƒ^ƒOƒ‰ƒtƒBƒbƒNƒX •ªB10’† \N ƒRƒ“ƒsƒ…[ƒ^ƒvƒƒOƒ‰ƒ}[ lZ01‰º \N diff --git a/src/test/mb/expected/unicode.out b/src/test/mb/expected/unicode.out index 4f619badd7..45f565ca67 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 計算機用語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上 | | 12 -コンピュータグラフィックス|分B10中 | | 13 -コンピュータプログラマー |人Z01下 | | 12 +select *,character_length(用語) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | length +-----------------------------------------+-----------------+----------------+-------- + コンピュータディスプレイ | 機A01上 | | 12 + コンピュータグラフィックス | 分B10中 | | 13 + コンピュータプログラマー | 人Z01下 | | 12 (3 rows) -QUERY: select *,octet_length(用語) from 計算機用語; -用語 |分類コード|備考1aだよ|octet_length ----------------------------------------+---------------+--------------+------------ -コンピュータディスプレイ |機A01上 | | 36 -コンピュータグラフィックス|分B10中 | | 39 -コンピュータプログラマー |人Z01下 | | 36 +select *,octet_length(用語) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | octet_length +-----------------------------------------+-----------------+----------------+-------------- + コンピュータディスプレイ | 機A01上 | | 36 + コンピュータグラフィックス | 分B10中 | | 39 + コンピュータプログラマー | 人Z01下 | | 36 (3 rows) -QUERY: select *,position('デ' in 用語) from 計算機用語; -用語 |分類コード|備考1aだよ|strpos ----------------------------------------+---------------+--------------+------ -コンピュータディスプレイ |機A01上 | | 7 -コンピュータグラフィックス|分B10中 | | 0 -コンピュータプログラマー |人Z01下 | | 0 +select *,position('デ' in 用語) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | strpos +-----------------------------------------+-----------------+----------------+-------- + コンピュータディスプレイ | 機A01上 | | 7 + コンピュータグラフィックス | 分B10中 | | 0 + コンピュータプログラマー | 人Z01下 | | 0 (3 rows) -QUERY: select *,substring(用語 from 10 for 4) from 計算機用語; -用語 |分類コード|備考1aだよ|substr ----------------------------------------+---------------+--------------+------------ -コンピュータディスプレイ |機A01上 | |プレイ -コンピュータグラフィックス|分B10中 | |ィックス -コンピュータプログラマー |人Z01下 | |ラマー +select *,substring(用語 from 10 for 4) from 計算機用語 + 用語 | 分類コード | 備考1aだよ | substr +-----------------------------------------+-----------------+----------------+-------------- + コンピュータディスプレイ | 機A01上 | | プレイ + コンピュータグラフィックス | 分B10中 | | ィックス + コンピュータプログラマー | 人Z01下 | | ラマー (3 rows)