summaryrefslogtreecommitdiffstats
path: root/src/test/mb/sql/euc_cn.sql
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:46:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:46:48 +0000
commit311bcfc6b3acdd6fd152798c7f287ddf74fa2a98 (patch)
tree0ec307299b1dada3701e42f4ca6eda57d708261e /src/test/mb/sql/euc_cn.sql
parentInitial commit. (diff)
downloadpostgresql-15-311bcfc6b3acdd6fd152798c7f287ddf74fa2a98.tar.xz
postgresql-15-311bcfc6b3acdd6fd152798c7f287ddf74fa2a98.zip
Adding upstream version 15.4.upstream/15.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/mb/sql/euc_cn.sql')
-rw-r--r--src/test/mb/sql/euc_cn.sql19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/mb/sql/euc_cn.sql b/src/test/mb/sql/euc_cn.sql
new file mode 100644
index 0000000..7cd0b9b
--- /dev/null
+++ b/src/test/mb/sql/euc_cn.sql
@@ -0,0 +1,19 @@
+drop table 计算机术语;
+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 计算机术语;
+select * from 计算机术语 where 分类号 = '人Z01下';
+select * from 计算机术语 where 分类号 ~* '人z01下';
+select * from 计算机术语 where 分类号 like '_Z01_';
+select * from 计算机术语 where 分类号 like '_Z%';
+select * from 计算机术语 where 术语 ~ '电脑[显图]';
+select * from 计算机术语 where 术语 ~* '电脑[显图]';
+select *,character_length(术语) from 计算机术语;
+select *,octet_length(术语) from 计算机术语;
+select *,position('显' in 术语) from 计算机术语;
+select *,substring(术语 from 3 for 4) from 计算机术语;