Commit 67c26c12 authored by Tatsuo Ishii's avatar Tatsuo Ishii

Fix expected files.

parent 8ebdac0e
drop table 廠商資料;
ERROR: table "廠商資料" does not exist
create table 廠商資料 (行業別 text, 公司抬頭 varchar, 地址 varchar(16));
create index 廠商資料index1 on 廠商資料 using btree (行業別);
create index 廠商資料index2 on 廠商資料 using hash (公司抬頭);
......
drop table 计算机术语;
ERROR: parser: parse error at or near "("
ERROR: table "计算机术语" does not exist
create table 计算机术语(术语 text, 分类号 varchar, 备注1A char(16));
ERROR: parser: parse error at or near "("
create index 计算机术语index1 on 计算机术语 using btree(术语);
ERROR: parser: parse error at or near "("
create index 计算机术语index2 on 计算机术语 using btree(分类号);
ERROR: parser: parse error at or near "("
insert into 计算机术语 values('电脑显示屏','机A01上');
ERROR: parser: parse error at or near "("
insert into 计算机术语 values('电脑图形','分B01中');
ERROR: parser: parse error at or near "("
insert into 计算机术语 values('电脑程序员','人Z01下');
ERROR: parser: parse error at or near "("
vacuum 计算机术语;
ERROR: parser: parse error at or near "("
select * from 计算机术语;
ERROR: parser: parse error at or near "92"
术语 | 分类号 | 备注1a
------------+---------+--------
电脑显示屏 | 机A01上 |
电脑图形 | 分B01中 |
电脑程序员 | 人Z01下 |
(3 rows)
select * from 计算机术语 where 分类号 = '人Z01下';
ERROR: parser: parse error at or near "92"
术语 | 分类号 | 备注1a
------------+---------+--------
电脑程序员 | 人Z01下 |
(1 row)
select * from 计算机术语 where 分类号 ~* '人z01下';
ERROR: parser: parse error at or near "92"
术语 | 分类号 | 备注1a
------------+---------+--------
电脑程序员 | 人Z01下 |
(1 row)
select * from 计算机术语 where 分类号 like '_Z01_';
ERROR: parser: parse error at or near "92"
术语 | 分类号 | 备注1a
------------+---------+--------
电脑程序员 | 人Z01下 |
(1 row)
select * from 计算机术语 where 分类号 like '_Z%';
ERROR: parser: parse error at or near "92"
术语 | 分类号 | 备注1a
------------+---------+--------
电脑程序员 | 人Z01下 |
(1 row)
select * from 计算机术语 where 术语 ~ '电脑[显图]';
ERROR: parser: parse error at or near "92"
术语 | 分类号 | 备注1a
------------+---------+--------
电脑显示屏 | 机A01上 |
电脑图形 | 分B01中 |
(2 rows)
select * from 计算机术语 where 术语 ~* '电脑[显图]';
ERROR: parser: parse error at or near "92"
术语 | 分类号 | 备注1a
------------+---------+--------
电脑显示屏 | 机A01上 |
电脑图形 | 分B01中 |
(2 rows)
select *,character_length(术语) from 计算机术语;
ERROR: parser: parse error at or near "caf5"
术语 | 分类号 | 备注1a | char_length
------------+---------+--------+-------------
电脑显示屏 | 机A01上 | | 5
电脑图形 | 分B01中 | | 4
电脑程序员 | 人Z01下 | | 5
(3 rows)
select *,octet_length(术语) from 计算机术语;
ERROR: parser: parse error at or near "caf5"
术语 | 分类号 | 备注1a | octet_length
------------+---------+--------+--------------
电脑显示屏 | 机A01上 | | 10
电脑图形 | 分B01中 | | 8
电脑程序员 | 人Z01下 | | 10
(3 rows)
select *,position('显' in 术语) from 计算机术语;
ERROR: parser: parse error at or near "caf5"
术语 | 分类号 | 备注1a | position
------------+---------+--------+----------
电脑显示屏 | 机A01上 | | 3
电脑图形 | 分B01中 | | 0
电脑程序员 | 人Z01下 | | 0
(3 rows)
select *,substring(术语 from 3 for 4) from 计算机术语;
ERROR: parser: parse error at or near "caf5"
术语 | 分类号 | 备注1a | substring
------------+---------+--------+-----------
电脑显示屏 | 机A01上 | | 显示屏
电脑图形 | 分B01中 | | 图形
电脑程序员 | 人Z01下 | | 程序员
(3 rows)
drop table 計算機용어;
ERROR: parser: parse error at or near "("
ERROR: table "計算機용어" does not exist
create table 計算機용어 (용어 text, 分類코드 varchar, 비고1A라구 char(16));
ERROR: parser: parse error at or near "("
create index 計算機용어index1 on 計算機용어 using btree (용어);
ERROR: parser: parse error at or near "("
create index 計算機용어index2 on 計算機용어 using hash (分類코드);
ERROR: parser: parse error at or near "("
insert into 計算機용어 values('컴퓨터디스플레이', '機A01上');
ERROR: parser: parse error at or near "("
insert into 計算機용어 values('컴퓨터그래픽스', '分B10中');
ERROR: parser: parse error at or near "("
insert into 計算機용어 values('컴퓨터프로그래머', '人Z01下');
ERROR: parser: parse error at or near "("
vacuum 計算機용어;
ERROR: parser: parse error at or near "("
select * from 計算機용어;
ERROR: parser: parse error at or near "92"
용어 | 分類코드 | 비고1a라구
------------------+----------+------------
컴퓨터디스플레이 | 機A01上 |
컴퓨터그래픽스 | 分B10中 |
컴퓨터프로그래머 | 人Z01下 |
(3 rows)
select * from 計算機용어 where 分類코드 = '人Z01下';
ERROR: parser: parse error at or near "92"
용어 | 分類코드 | 비고1a라구
------------------+----------+------------
컴퓨터프로그래머 | 人Z01下 |
(1 row)
select * from 計算機용어 where 分類코드 ~* '人z01下';
ERROR: parser: parse error at or near "92"
용어 | 分類코드 | 비고1a라구
------------------+----------+------------
컴퓨터프로그래머 | 人Z01下 |
(1 row)
select * from 計算機용어 where 分類코드 like '_Z01_';
ERROR: parser: parse error at or near "92"
용어 | 分類코드 | 비고1a라구
------------------+----------+------------
컴퓨터프로그래머 | 人Z01下 |
(1 row)
select * from 計算機용어 where 分類코드 like '_Z%';
ERROR: parser: parse error at or near "92"
용어 | 分類코드 | 비고1a라구
------------------+----------+------------
컴퓨터프로그래머 | 人Z01下 |
(1 row)
select * from 計算機용어 where 용어 ~ '컴퓨터[디그]';
ERROR: parser: parse error at or near "92"
용어 | 分類코드 | 비고1a라구
------------------+----------+------------
컴퓨터디스플레이 | 機A01上 |
컴퓨터그래픽스 | 分B10中 |
(2 rows)
select * from 計算機용어 where 용어 ~* '컴퓨터[디그]';
ERROR: parser: parse error at or near "92"
용어 | 分類코드 | 비고1a라구
------------------+----------+------------
컴퓨터디스플레이 | 機A01上 |
컴퓨터그래픽스 | 分B10中 |
(2 rows)
select *,character_length(용어) from 計算機용어;
ERROR: parser: parse error at or near "bfeb"
용어 | 分類코드 | 비고1a라구 | char_length
------------------+----------+------------+-------------
컴퓨터디스플레이 | 機A01上 | | 8
컴퓨터그래픽스 | 分B10中 | | 7
컴퓨터프로그래머 | 人Z01下 | | 8
(3 rows)
select *,octet_length(용어) from 計算機용어;
ERROR: parser: parse error at or near "bfeb"
용어 | 分類코드 | 비고1a라구 | octet_length
------------------+----------+------------+--------------
컴퓨터디스플레이 | 機A01上 | | 16
컴퓨터그래픽스 | 分B10中 | | 14
컴퓨터프로그래머 | 人Z01下 | | 16
(3 rows)
select *,position('디' in 용어) from 計算機용어;
ERROR: parser: parse error at or near "bfeb"
용어 | 分類코드 | 비고1a라구 | position
------------------+----------+------------+----------
컴퓨터디스플레이 | 機A01上 | | 4
컴퓨터그래픽스 | 分B10中 | | 0
컴퓨터프로그래머 | 人Z01下 | | 0
(3 rows)
select *,substring(용어 from 3 for 4) from 計算機용어;
ERROR: parser: parse error at or near "bfeb"
용어 | 分類코드 | 비고1a라구 | substring
------------------+----------+------------+-----------
컴퓨터디스플레이 | 機A01上 | | 터디스플
컴퓨터그래픽스 | 分B10中 | | 터그래픽
컴퓨터프로그래머 | 人Z01下 | | 터프로그
(3 rows)
drop table 燹俑骜砧;
ERROR: parser: parse error at or near "("
ERROR: table "燹俑骜砧" does not exist
create table 燹俑骜砧 (如淦杀 text, 狞瞥婉螭 varchar, 氢蛇 varchar(16));
ERROR: parser: parse error at or near "("
create index 燹俑骜砧index1 on 燹俑骜砧 using btree (如淦杀);
ERROR: parser: parse error at or near "("
create index 燹俑骜砧index2 on 燹俑骜砧 using hash (狞瞥婉螭);
ERROR: parser: parse error at or near "("
insert into 燹俑骜砧 values ('缳妾淦', '绠绠绎世', '啤A01念');
ERROR: parser: parse error at or near "("
insert into 燹俑骜砧 values ('犒葸淦', '芈溷却宇狞瞥', '你B10你');
ERROR: parser: parse error at or near "("
insert into 燹俑骜砧 values ('螫悖淦', '印汤洗枪却宇狞瞥', '仨Z01摩');
ERROR: parser: parse error at or near "("
vacuum 燹俑骜砧;
ERROR: parser: parse error at or near "("
select * from 燹俑骜砧;
ERROR: parser: parse error at or near "92"
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
缳妾淦 | 绠绠绎世 | 啤A01念
犒葸淦 | 芈溷却宇狞瞥 | 你B10你
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(3 rows)
select * from 燹俑骜砧 where 氢蛇 = '仨Z01摩';
ERROR: parser: parse error at or near "92"
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 氢蛇 ~* '仨z01摩';
ERROR: parser: parse error at or near "92"
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 氢蛇 like '_Z01_';
ERROR: parser: parse error at or near "92"
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 氢蛇 like '_Z%';
ERROR: parser: parse error at or near "92"
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+------------------+---------
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩
(1 row)
select * from 燹俑骜砧 where 狞瞥婉螭 ~ '绠绠绎[凫卮世]';
ERROR: parser: parse error at or near "92"
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+----------+---------
缳妾淦 | 绠绠绎世 | 啤A01念
(1 row)
select * from 燹俑骜砧 where 狞瞥婉螭 ~* '绠绠绎[凫卮世]';
ERROR: parser: parse error at or near "92"
如淦杀 | 狞瞥婉螭 | 氢蛇
--------+----------+---------
缳妾淦 | 绠绠绎世 | 啤A01念
(1 row)
select *, character_length(如淦杀) from 燹俑骜砧;
ERROR: parser: parse error at or near "c8e7"
如淦杀 | 狞瞥婉螭 | 氢蛇 | char_length
--------+------------------+---------+-------------
缳妾淦 | 绠绠绎世 | 啤A01念 | 3
犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 3
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 3
(3 rows)
select *, octet_length(如淦杀) from 燹俑骜砧;
ERROR: parser: parse error at or near "c8e7"
如淦杀 | 狞瞥婉螭 | 氢蛇 | octet_length
--------+------------------+---------+--------------
缳妾淦 | 绠绠绎世 | 啤A01念 | 6
犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 6
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 6
(3 rows)
select *, position('却宇' in 狞瞥婉螭) from 燹俑骜砧;
ERROR: parser: parse error at or near "c4fc"
如淦杀 | 狞瞥婉螭 | 氢蛇 | position
--------+------------------+---------+----------
缳妾淦 | 绠绠绎世 | 啤A01念 | 0
犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 3
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 5
(3 rows)
select *, substring(狞瞥婉螭 from 3 for 6 ) from 燹俑骜砧;
ERROR: parser: parse error at or near "c4fc"
如淦杀 | 狞瞥婉螭 | 氢蛇 | substring
--------+------------------+---------+--------------
缳妾淦 | 绠绠绎世 | 啤A01念 | 绎世
犒葸淦 | 芈溷却宇狞瞥 | 你B10你 | 却宇狞瞥
螫悖淦 | 印汤洗枪却宇狞瞥 | 仨Z01摩 | 洗枪却宇狞瞥
(3 rows)
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment