aboutsummaryrefslogtreecommitdiff
path: root/src/test/mb/expected/euc_cn.out
blob: f35356b5e85fef775dbf107d5ee6d541234c8dab (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
QUERY: drop table ���������;
ERROR:  Relation ��������� Does Not Exist!
QUERY: create table ���������(���� text, ����� varchar, ��ע1A char(16));
QUERY: create index ���������index1 on ��������� using btree(����);
QUERY: create index ���������index2 on ��������� using btree(�����);
QUERY: insert into ��������� values('������ʾ��','��A01��');
QUERY: insert into ��������� values('����ͼ��','��B01��');
QUERY: insert into ��������� values('���Գ���Ա','��Z01��');
QUERY: vacuum ���������;
QUERY: select * from ���������;
����      |����� |��ע1a
----------+-------+------
������ʾ��|��A01��|      
����ͼ��  |��B01��|      
���Գ���Ա|��Z01��|      
(3 rows)

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

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

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

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

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

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

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

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

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

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