summaryrefslogtreecommitdiffstats
path: root/src/test/mb/sql/big5.sql
blob: 4e2d10019962d0b902f1f6d97c51551afdd4a9cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
drop table tӸ��;
create table tӸ�� (��~O text, ���q���Y varchar, a�} varchar(16));
create index tӸ��index1 on tӸ�� using btree (��~O);
create index tӸ��index2 on tӸ�� using hash (���q���Y);
insert into tӸ�� values ('�q���~', '�F�F���', '�_A01��');
insert into tӸ�� values ('�s�y�~', '�]���������q', '��B10��');
insert into tӸ�� values ('�\���~', '�����ѥ��������q', '��Z01�E');
vacuum tӸ��;
select * from tӸ��;
select * from tӸ�� where a�} = '��Z01�E';
select * from tӸ�� where a�} ~* '��z01�E';
select * from tӸ�� where a�} like '_Z01_';
select * from tӸ�� where a�} like '_Z%';
select * from tӸ�� where ���q���Y ~ '�F�F��[�H�O��]';
select * from tӸ�� where ���q���Y ~* '�F�F��[�H�O��]';

select *, character_length(��~O) from tӸ��;
select *, octet_length(��~O) from tӸ��;
select *, position('����' in ���q���Y) from tӸ��;
select *, substring(���q���Y from 3 for 6 ) from tӸ��;