1drop table ��ג�������ђ��;
2create table ��ג�������ђ�� (��ђ�� text, �ʬ������������ varchar, ������1A������ char(16));
3create index ��ג�������ђ��index1 on ��ג�������ђ�� using btree (��ђ��);
4create index ��ג�������ђ��index2 on ��ג�������ђ�� using hash (�ʬ������������);
5insert into ��ג�������ђ�� values('������Ԓ�咡������ǒ�������ג�쒥�','���A01���');
6insert into ��ג�������ђ�� values('������Ԓ�咡���������钥Ւ����Ò�����','�ʬB10���');
7insert into ��ג�������ђ�� values('������Ԓ�咡������ג�풥���钥ޒ��','���Z01���');
8vacuum ��ג�������ђ��;
9select * from ��ג�������ђ��;
10select * from ��ג�������ђ�� where �ʬ������������ = '���Z01���';
11select * from ��ג�������ђ�� where �ʬ������������ ~* '���z01���';
12select * from ��ג�������ђ�� where �ʬ������������ like '_Z01_';
13select * from ��ג�������ђ�� where �ʬ������������ like '_Z%';
14select * from ��ג�������ђ�� where ��ђ�� ~ '������Ԓ�咡����[��ǒ��]';
15select * from ��ג�������ђ�� where ��ђ�� ~* '������Ԓ�咡����[��ǒ��]';
16select *,character_length(��ђ��) from ��ג�������ђ��;
17select *,octet_length(��ђ��) from ��ג�������ђ��;
18select *,position('���' in ��ђ��) from ��ג�������ђ��;
19select *,substring(��ђ�� from 10 for 4) from ��ג�������ђ��;
20drop table ��Ƒ�㑻�������;
21create table ��Ƒ�㑻�������(������ text, ��֑����� varchar, ����ע1A char(16));
22create index ��Ƒ�㑻�������index1 on ��Ƒ�㑻������� using btree(������);
23create index ��Ƒ�㑻�������index2 on ��Ƒ�㑻������� using btree(��֑�����);
24insert into ��Ƒ�㑻������� values('����ԑ�ԑʾ���','���A01���');
25insert into ��Ƒ�㑻������� values('����ԑͼ���','���B01���');
26insert into ��Ƒ�㑻������� values('����ԑ�̑��Ա','���Z01���');
27vacuum ��Ƒ�㑻�������;
28select * from ��Ƒ�㑻�������;
29select * from ��Ƒ�㑻������� where ��֑����� = '���Z01���';
30select * from ��Ƒ�㑻������� where ��֑����� ~* '���z01���';
31select * from ��Ƒ�㑻������� where ��֑����� like '_Z01_';
32select * from ��Ƒ�㑻������� where ��֑����� like '_Z%';
33select * from ��Ƒ�㑻������� where ������ ~ '�����[��ԑͼ]';
34select * from ��Ƒ�㑻������� where ������ ~* '�����[��ԑͼ]';
35select *,character_length(������) from ��Ƒ�㑻�������;
36select *,octet_length(������) from ��Ƒ�㑻�������;
37select *,position('���' in ������) from ��Ƒ�㑻�������;
38select *,substring(������ from 3 for 4) from ��Ƒ�㑻�������;
39drop table �ͪ�ߩ�Ѧ��듾�;
40create table �ͪ�ߩ�Ѧ��듾� (��듾� text, ��“׾��ړ�� varchar, ����1A���� char(16));
41create index �ͪ�ߩ�Ѧ��듾�index1 on �ͪ�ߩ�Ѧ��듾� using btree (��듾�);
42create index �ͪ�ߩ�Ѧ��듾�index2 on �ͪ�ߩ�Ѧ��듾� using hash (��“׾��ړ��);
43insert into �ͪ�ߩ�Ѧ��듾� values('��ēǻ��͓�����Ó�����', '�ѦA01�߾');
44insert into �ͪ�ߩ�Ѧ��듾� values('��ēǻ��͓�ד����ȓ��', '���B10���');
45insert into �ͪ�ߩ�Ѧ��듾� values('��ēǻ��͓����Γ�ד�����', '���Z01���');
46vacuum �ͪ�ߩ�Ѧ��듾�;
47select * from �ͪ�ߩ�Ѧ��듾�;
48select * from �ͪ�ߩ�Ѧ��듾� where ��“׾��ړ�� = '���Z01���';
49select * from �ͪ�ߩ�Ѧ��듾� where ��“׾��ړ�� ~* '���z01���';
50select * from �ͪ�ߩ�Ѧ��듾� where ��“׾��ړ�� like '_Z01_';
51select * from �ͪ�ߩ�Ѧ��듾� where ��“׾��ړ�� like '_Z%';
52select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~ '��ēǻ���[����]';
53select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~* '��ēǻ���[����]';
54select *,character_length(��듾�) from �ͪ�ߩ�Ѧ��듾�;
55select *,octet_length(��듾�) from �ͪ�ߩ�Ѧ��듾�;
56select *,position('���' in ��듾�) from �ͪ�ߩ�Ѧ��듾�;
57select *,substring(��듾� from 3 for 4) from �ͪ�ߩ�Ѧ��듾�;
58drop table test;
59create table test (t text);
60insert into test values('ENGLISH');
61insert into test values('FRAN��AIS');
62insert into test values('ESPA��OL');
63insert into test values('��SLENSKA');
64insert into test values('ENGLISH FRAN��AIS ESPA��OL ��SLENSKA');
65vacuum test;
66select * from test;
67select * from test where t = 'ESPA��OL';
68select * from test where t ~* 'espa��ol';
69select *,character_length(t) from test;
70select *,octet_length(t) from test;
71select *,position('L' in t) from test;
72select *,substring(t from 3 for 4) from test;
73