Postgres里面有一个内置的10进制转16进制的函数:to_hex(int)/to_hex(bigint) [postgres@localhost ~]$ psql Password: psql (9.1.3) Type "help" for help. postgres=# select to_hex(9); to_hex --- 9 (1 row) postgres=# select to_hex(17); to_hex --- 11 (1 row) postgres=# select ...
to_ascii(text [, encoding]) text 把text从其它编码转换为ASCII。 to_ascii('Karel') Karel to_hex(number int/bigint) text 把number转换成其对应地十六进制表现形式。 to_hex(9223372036854775807) 7fffffffffffffff translate(string text, from text, to text) text 把在string中包含的任何匹配from中的字...
to_ascii('Karel')Karelto_hex(number int/bigint)text把number转换成其对应地十六进制表现形式。to_hex(9223372036854775 31、807)7ffffffffffffffftranslate(string text, from text, to text)text把在string中包含的任何匹配from中的字符的字符转化为对应的在to中的字符。translate('12345', '14', 'ax')a23...
to_ascii(text [, encoding]) text 把text从其它编码转换为ASCII。 to_ascii('Karel') Karel to_hex(number int/bigint) text 把number转换成其对应地十六进制表现形式。 to_hex(9223372036854775807) 7fffffffffffffff translate(string text, from text, to text) text 把在string中包含的任何匹配from中的字...
to_hex(number int/bigint) text 把number转换成其对应地十六进制表现形式。 to_hex(9223372036854775807) 7fffffffffffffff translate(string text, from text, to text) text 把在string中包含的任何匹配from中的字符的字符转化为对应的在to中的字符。
to_ascii(text [, encoding]) text 把text从其它编码转换为ASCII。 to_ascii('Karel') Karel to_hex(number int/bigint) text 把number转换成其对应地十六进制表现形式。 to_hex(9223372036854775807) 7fffffffffffffff translate(string text, from text, to text) text 把在string中包含的任何匹配from中的字...
to_char(int, text)text 把整数转换成字串 to_char(125, '999')to_char(double precision, text)text 把实数/双精度数转换成字串 to_char(125.8::real, '999D9')to_char(numeric, text)text 把numeric转换成字串 to_char(-125.8, '999D99S')to_date(text, text)date 把字串转换成日期 to_date...
n int) replace(string text, from text, totext) rtrim(string text [, characters text]) strpos(string, substring) substr(string, from [, count]) to_ascii(string text [, encodingtext]) to_hex(number int or bigint) 返回值 text int int text text name text text text text int text text...
to_ascii(text [, encoding]) 把text从其它编码转换为ASCII。 to_ascii('Karel') Karel to_hex(number int/bigint) 把number转换成其对应地十六进制表现形式。 to_hex(9223372036854775807) 7fffffffffffffff translate(string text, from text, to text) 把在string中包含的任何匹配from中的字符的字...
INSERT INTO array_data (int_array, text_array) VALUES ('{1, 2, 3}', '{"apple", "banana", "cherry"}'); SELECT * FROM array_data; 复合数据类型 可以使用ROW类型创建自定义的复合结构体,或者使用TABLE类型来模拟表结构。在序列化时,需要按照定义的字段顺序和数据类型进行处理。