ascii(text) | integer | ���������ʸ���� ASCII �����ɤ��֤��ޤ��� | ascii('x') | 120 |
btrim(string text, trim text) | text |
trim �ǻ��ꤵ�줿ʸ���Τߤ�ͭ�����Ĺ��ʸ����� string ����Ƭ���������������ޤ��� | btrim('xyxtrimyyx','xy') | trim |
chr(integer) | text | Ϳ����줿 ASCII �����ɤ�ʸ�����֤��ޤ��� | chr(65) | A |
convert(string text,
[src_encoding name,]
dest_encoding name) | text |
dest_encoding ���Ѥ���ʸ������Ѵ����ޤ������Υ����ɲ������� src_encoding �ǻ��ꤵ��ޤ��� src_encoding ����ά���줿���ϥǡ����١����Υ����ɲ���������Ѥ��ޤ��� | convert('text_in_unicode', 'UNICODE', 'LATIN1') | ISO 8859-1 ��ɽ������� text_in_unicode |
initcap(text) | text | (����Ƕ��ڤ�줿)���줾���ñ������ʸ������ʸ���ˤ��ޤ��� | initcap('hi thomas') | Hi Thomas |
length(string) | integer |
ʸ�����Ĺ��
| length('jose') | 4 |
lpad(string text,
length integer
[, fill text]) | text |
ʸ�� fill (�ǥե���Ȥϥ��ڡ���)��ʸ����Τ��ɲä��� string �� length
��Ĺ���ˤ��ޤ���string ������
length ��Ĺ����ۤ��Ƥ������(��¦��)�ڤ�ΤƤ��ޤ��� | lpad('hi', 5, 'xy') | xyxhi |
ltrim(string text, trim text) | text |
ʸ����κǽ餫�� trim �ǻ��ꤵ�줿ʸ����ͭ�����Ĺ��ʸ����������ޤ��� | ltrim('zzzytrim','xyz') | trim |
pg_client_encoding() | name |
���ߤΥ��饤����Ȥ���沽������̾�����֤��ޤ��� | pg_client_encoding() | SQL_ASCII |
repeat(text, integer) | text | Repeat text a number of times. | repeat('Pg', 4) | PgPgPgPg |
rpad(string text,
length integer
[, fill text]) | text |
ʸ�� fill (�ǥե���Ȥϥ��ڡ���)��ʸ����Τ��ɲä��� string �� length
��Ĺ���ˤ��ޤ���string ������
length ��Ĺ����ۤ��Ƥ�������ڤ�ΤƤ��ޤ��� | rpad('hi', 5, 'xy') | hixyx |
rtrim(string text, trim text) | text |
ʸ����κǸ夫�� trim �ǻ��ꤵ�줿ʸ����ͭ�����Ĺ��ʸ����������ޤ��� | rtrim('trimxxxx','x') | trim |
strpos(string, substring) | text |
���ꤵ�줿��ʸ����ΰ��֤����ꤷ�ޤ���(position(substring in
string) ��Ʊ���Ǥ����������ν�����դˤʤäƤ��뤳�Ȥ����դ��Ƥ��������� | strpos('high','ig') | 2 |
substr(string, from [, count]) | text |
���ꤵ�줿��ʸ�������Ф��ޤ���(substring(string from from for count) ��Ʊ���Ǥ���) | substr('alphabet', 3, 2) | ph |
to_ascii(text [, encoding]) | text | �ޥ���Х�����沽�����Υƥ����Ȥ� ASCII ���Ѵ����ޤ��� | to_ascii('Karel') | Karel |
translate(string text,
from text,
to text) | text |
from �ǻ��ꤵ�줿ʸ���Ȱ��פ���
string �ˤ��뤹�٤Ƥ�ʸ���ϡ�������б�����
to �ǻ��ꤵ�줿ʸ�����֤��������ޤ��� | translate('12345', '14', 'ax') | a23x5 |
encode(data bytea,
type text) | text |
�Х��ʥ�ǡ����� ASCII �Τߤ�ɽ������沽���ޤ������ݡ��Ȥ���Ƥ��뷿�� 'base64'��'hex'��'escape' �Ǥ��� | encode('123\\000\\001', 'base64') | MTIzAAE= |
decode(string text,
type text) | bytea |
������ encode() ����沽���줿 string ����Х��ʥ�ǡ��������椷�ޤ����ѥ����η��� encode() ��Ʊ���Ǥ��� | decode('MTIzAAE=', 'base64') | 123\000\001 |