summaryrefslogtreecommitdiffstats
path: root/src/test/mb/sql/euc_jp.sql
blob: 2021205bf45797333b144fe81bc15796427436b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 Ѹ ~* '����ԥ塼��[�ǥ�]';
select *,character_length(Ѹ) from �׻����Ѹ;
select *,octet_length(Ѹ) from �׻����Ѹ;
select *,position('��' in Ѹ) from �׻����Ѹ;
select *,substring(Ѹ from 10 for 4) from �׻����Ѹ;