summaryrefslogtreecommitdiffstats
path: root/src/test/mb/expected/euc_cn.out
blob: 4d046fa87dcdd32adf9cba52c939da48a93c16c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
drop table ���������;
ERROR:  table "���������" does not exist
create table ���������(���� text, ����� varchar, ��ע1A char(16));
create index ���������index1 on ��������� using btree(����);
create index ���������index2 on ��������� using btree(�����);
insert into ��������� values('������ʾ��','��A01��');
insert into ��������� values('����ͼ��','��B01��');
insert into ��������� values('���Գ���Ա','��Z01��');
vacuum ���������;
select * from ���������;
    ����    | �����  | ��ע1a 
------------+---------+--------
 ������ʾ�� | ��A01�� | 
 ����ͼ��   | ��B01�� | 
 ���Գ���Ա | ��Z01�� | 
(3 rows)

select * from ��������� where ����� = '��Z01��';
    ����    | �����  | ��ע1a 
------------+---------+--------
 ���Գ���Ա | ��Z01�� | 
(1 row)

select * from ��������� where ����� ~* '��z01��';
    ����    | �����  | ��ע1a 
------------+---------+--------
 ���Գ���Ա | ��Z01�� | 
(1 row)

select * from ��������� where ����� like '_Z01_';
    ����    | �����  | ��ע1a 
------------+---------+--------
 ���Գ���Ա | ��Z01�� | 
(1 row)

select * from ��������� where ����� like '_Z%';
    ����    | �����  | ��ע1a 
------------+---------+--------
 ���Գ���Ա | ��Z01�� | 
(1 row)

select * from ��������� where ���� ~ '����[��ͼ]';
    ����    | �����  | ��ע1a 
------------+---------+--------
 ������ʾ�� | ��A01�� | 
 ����ͼ��   | ��B01�� | 
(2 rows)

select * from ��������� where ���� ~* '����[��ͼ]';
    ����    | �����  | ��ע1a 
------------+---------+--------
 ������ʾ�� | ��A01�� | 
 ����ͼ��   | ��B01�� | 
(2 rows)

select *,character_length(����) from ���������;
    ����    | �����  | ��ע1a | character_length 
------------+---------+--------+------------------
 ������ʾ�� | ��A01�� |        |                5
 ����ͼ��   | ��B01�� |        |                4
 ���Գ���Ա | ��Z01�� |        |                5
(3 rows)

select *,octet_length(����) from ���������;
    ����    | �����  | ��ע1a | octet_length 
------------+---------+--------+--------------
 ������ʾ�� | ��A01�� |        |           10
 ����ͼ��   | ��B01�� |        |            8
 ���Գ���Ա | ��Z01�� |        |           10
(3 rows)

select *,position('��' in ����) from ���������;
    ����    | �����  | ��ע1a | position 
------------+---------+--------+----------
 ������ʾ�� | ��A01�� |        |        3
 ����ͼ��   | ��B01�� |        |        0
 ���Գ���Ա | ��Z01�� |        |        0
(3 rows)

select *,substring(���� from 3 for 4) from ���������;
    ����    | �����  | ��ע1a | substring 
------------+---------+--------+-----------
 ������ʾ�� | ��A01�� |        | ��ʾ��
 ����ͼ��   | ��B01�� |        | ͼ��
 ���Գ���Ա | ��Z01�� |        | ����Ա
(3 rows)