/
githubmirror
/
postgres
Обзор
Документация
Войти
/
githubmirror
/
postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/test/mb/expected/euc_cn.out
86 строк
3 KB
Tatsuo Ishii
update mbregress expected files
29 авг 2002, 08:43
29 авг 2002, 08:43
16402ac
Код
Авторство
О чём код?
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)