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 hash (�ʬ������������); insert into ��ג�������ђ�� values('������Ԓ�咡������ǒ�������ג�쒥�','���A01���'); insert into ��ג�������ђ�� values('������Ԓ�咡���������钥Ւ����Ò�����','�ʬB10���'); insert into ��ג�������ђ�� values('������Ԓ�咡������ג�풥���钥ޒ��','���Z01���'); vacuum ��ג�������ђ��; select * from ��ג�������ђ��; ��ђ�� | �ʬ������������ | ������1a������ ----------------------------+------------+------------ ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | ������Ԓ�咡������ג�풥���钥ޒ�� | ���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��� | ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | (2 rows) select * from ��ג�������ђ�� where ��ђ�� ~* '������Ԓ�咡����[��ǒ��]'; ��ђ�� | �ʬ������������ | ������1a������ ----------------------------+------------+------------ ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | (2 rows) select *,character_length(��ђ��) from ��ג�������ђ��; ��ђ�� | �ʬ������������ | ������1a������ | character_length ----------------------------+------------+------------+------------------ ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 12 ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 13 ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 12 (3 rows) select *,octet_length(��ђ��) from ��ג�������ђ��; ��ђ�� | �ʬ������������ | ������1a������ | octet_length ----------------------------+------------+------------+-------------- ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 36 ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 39 ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 36 (3 rows) select *,position('���' in ��ђ��) from ��ג�������ђ��; ��ђ�� | �ʬ������������ | ������1a������ | position ----------------------------+------------+------------+---------- ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | 7 ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | 0 ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | 0 (3 rows) select *,substring(��ђ�� from 10 for 4) from ��ג�������ђ��; ��ђ�� | �ʬ������������ | ������1a������ | substring ----------------------------+------------+------------+----------- ������Ԓ�咡������ǒ�������ג�쒥� | ���A01��� | | ��ג�쒥� ������Ԓ�咡���������钥Ւ����Ò����� | �ʬB10��� | | �����Ò����� ������Ԓ�咡������ג�풥���钥ޒ�� | ���Z01��� | | ��钥ޒ�� (3 rows) 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��� | | 15 ����ԑͼ��� | ���B01��� | | 12 ����ԑ�̑��Ա | ���Z01��� | | 15 (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) 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 hash (��“׾��ړ��); insert into �ͪ�ߩ�Ѧ��듾� values('��ēǻ��͓�𓽺��Ó�����', '�ѦA01�߾'); insert into �ͪ�ߩ�Ѧ��듾� values('��ēǻ��͓�ד����ȓ��', '���B10���'); insert into �ͪ�ߩ�Ѧ��듾� values('��ēǻ��͓����Γ�ד�����', '���Z01���'); vacuum �ͪ�ߩ�Ѧ��듾�; select * from �ͪ�ߩ�Ѧ��듾�; ��듾� | ��“׾��ړ�� | ����1a��󓱸 ------------------+----------+------------ ��ēǻ��͓�𓽺��Ó����� | �ѦA01�߾ | ��ēǻ��͓�ד����ȓ�� | ���B10��� | ��ēǻ��͓����Γ�ד����� | ���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�߾ | ��ēǻ��͓�ד����ȓ�� | ���B10��� | (2 rows) select * from �ͪ�ߩ�Ѧ��듾� where ��듾� ~* '��ēǻ���[����]'; ��듾� | ��“׾��ړ�� | ����1a��󓱸 ------------------+----------+------------ ��ēǻ��͓�𓽺��Ó����� | �ѦA01�߾ | ��ēǻ��͓�ד����ȓ�� | ���B10��� | (2 rows) select *,character_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; ��듾� | ��“׾��ړ�� | ����1a��󓱸 | character_length ------------------+----------+------------+------------------ ��ēǻ��͓�𓽺��Ó����� | �ѦA01�߾ | | 8 ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 7 ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 8 (3 rows) select *,octet_length(��듾�) from �ͪ�ߩ�Ѧ��듾�; ��듾� | ��“׾��ړ�� | ����1a��󓱸 | octet_length ------------------+----------+------------+-------------- ��ēǻ��͓�𓽺��Ó����� | �ѦA01�߾ | | 24 ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 21 ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 24 (3 rows) select *,position('���' in ��듾�) from �ͪ�ߩ�Ѧ��듾�; ��듾� | ��“׾��ړ�� | ����1a��󓱸 | position ------------------+----------+------------+---------- ��ēǻ��͓�𓽺��Ó����� | �ѦA01�߾ | | 4 ��ēǻ��͓�ד����ȓ�� | ���B10��� | | 0 ��ēǻ��͓����Γ�ד����� | ���Z01��� | | 0 (3 rows) select *,substring(��듾� from 3 for 4) from �ͪ�ߩ�Ѧ��듾�; ��듾� | ��“׾��ړ�� | ����1a��󓱸 | substring ------------------+----------+------------+----------- ��ēǻ��͓�𓽺��Ó����� | �ѦA01�߾ | | ��͓�𓽺��� ��ēǻ��͓�ד����ȓ�� | ���B10��� | | ��͓�ד����� ��ēǻ��͓����Γ�ד����� | ���Z01��� | | ��͓����Γ�� (3 rows) drop table test; ERROR: table "test" does not exist create table test (t text); insert into test values('ENGLISH'); insert into test values('FRAN��AIS'); insert into test values('ESPA��OL'); insert into test values('��SLENSKA'); insert into test values('ENGLISH FRAN��AIS ESPA��OL ��SLENSKA'); vacuum test; select * from test; t ----------------------------------- ENGLISH FRAN��AIS ESPA��OL ��SLENSKA ENGLISH FRAN��AIS ESPA��OL ��SLENSKA (5 rows) select * from test where t = 'ESPA��OL'; t --------- ESPA��OL (1 row) select * from test where t ~* 'espa��ol'; t ----------------------------------- ESPA��OL ENGLISH FRAN��AIS ESPA��OL ��SLENSKA (2 rows) select *,character_length(t) from test; t | character_length -----------------------------------+------------------ ENGLISH | 7 FRAN��AIS | 8 ESPA��OL | 7 ��SLENSKA | 8 ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | 33 (5 rows) select *,octet_length(t) from test; t | octet_length -----------------------------------+-------------- ENGLISH | 7 FRAN��AIS | 9 ESPA��OL | 8 ��SLENSKA | 9 ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | 36 (5 rows) select *,position('L' in t) from test; t | position -----------------------------------+---------- ENGLISH | 4 FRAN��AIS | 0 ESPA��OL | 7 ��SLENSKA | 3 ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | 4 (5 rows) select *,substring(t from 3 for 4) from test; t | substring -----------------------------------+----------- ENGLISH | GLIS FRAN��AIS | AN��A ESPA��OL | PA��O ��SLENSKA | LENS ENGLISH FRAN��AIS ESPA��OL ��SLENSKA | GLIS (5 rows)