~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/test/mb/sql/unicode.sql

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table 計算機用語;
 
2
create table 計算機用語 (用語 text, 分類コード varchar, 備考1Aだよ char(16));
 
3
create index 計算機用語index1 on 計算機用語 using btree (用語);
 
4
create index 計算機用語index2 on 計算機用語 using hash (分類コード);
 
5
insert into 計算機用語 values('コンピュータディスプレイ','機A01上');
 
6
insert into 計算機用語 values('コンピュータグラフィックス','分B10中');
 
7
insert into 計算機用語 values('コンピュータプログラマー','人Z01下');
 
8
vacuum 計算機用語;
 
9
select * from 計算機用語;
 
10
select * from 計算機用語 where 分類コード = '人Z01下';
 
11
select * from 計算機用語 where 分類コード ~* '人z01下';
 
12
select * from 計算機用語 where 分類コード like '_Z01_';
 
13
select * from 計算機用語 where 分類コード like '_Z%';
 
14
select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]';
 
15
select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]';
 
16
select *,character_length(用語) from 計算機用語;
 
17
select *,octet_length(用語) from 計算機用語;
 
18
select *,position('デ' in 用語) from 計算機用語;
 
19
select *,substring(用語 from 10 for 4) from 計算機用語;