mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-12 08:16:49 +02:00
609026bb6b
Included are patches intended for allowing PostgreSQL to handle multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and Mule internal code. With the MB patch you can use multi-byte character sets in regexp and LIKE. The encoding system chosen is determined at the compile time. To enable the MB extension, you need to define a variable "MB" in Makefile.global or in Makefile.custom. For further information please take a look at README.mb under doc directory. (Note that unlike "jp patch" I do not use modified GNU regexp any more. I changed Henry Spencer's regexp coming with PostgreSQL.)
16 lines
830 B
SQL
16 lines
830 B
SQL
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 計算機用語;
|
|
select * from 計算機用語 where 分類コード = '人Z01下';
|
|
select * from 計算機用語 where 分類コード ~* '人z01下';
|
|
select * from 計算機用語 where 分類コード like '_Z01_';
|
|
select * from 計算機用語 where 分類コード like '_Z%';
|
|
select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]';
|
|
select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]';
|