Remove the longest string containing only the
characters (a space by default) from the
- start/end/both ends of the
string.
+ start/end/both ends of the
string
trim(both 'x' from 'xTomxx')
Tom
Remove the longest string consisting only of characters
in
characters (a space by default)
- from the start and end of
string.
+ from the start and end of
string
btrim('xyxtrimyyx', 'xy')
trim
integer
- Number of characters in
string.
+ Number of characters in
string
length
Remove the longest string containing only characters from
characters (a space by default) from the start of
ltrim('zzzytrim', 'xyz')
trim
text
Calculates the MD5 hash of
string,
- returning the result in hexadecimal.
+ returning the result in hexadecimal
md5('abc')
900150983cd24fb0 d6963f7d28e17f72
text
Replace all occurrences in string of substring
-
from with substring
to.
replace( 'abcdefabcdef', 'cd', 'XX')
abXXefabXXef
Remove the longest string containing only characters from
characters (a space by default) from the end of
rtrim('trimxxxx', 'x')
trim
Any character in
string that matches a
character in the
from set is replaced by
the corresponding character in the
to
- set.
+ set
translate('12345', '14', 'ax')
a23x5
integer
- Extract byte from string.
+ Extract byte from string
bytea
- Set byte in string.
+ Set byte in string
integer
- Extract bit from string.
+ Extract bit from string
bytea
- Set bit in string.
+ Set bit in string
Remove the longest string consisting only of bytes
in
bytes from the start and end of
btrim('\\000trim\\000'::bytea, '\\000'::bytea)
trim
text
Calculates the MD5 hash of
string,
- returning the result in hexadecimal.
+ returning the result in hexadecimal
md5('Th\\000omas'::bytea)
8ab2d3c9689aaf18 b4958c334c82d8b1
encode('123\\000456'::bytea, 'escape')
123\000456
-
+
If a sequence object has been created with default parameters,
nextval calls on it will return successive values
beginning with 1. Other behaviors can be obtained by using
- special parameters in the SQL-CREATESEQUENCE"> command;
+ special parameters in the sql-createsequence" endterm="sql-createsequence-title"> command;
see its command reference page for more information.
setof int or setof bigint (same as argument type)
Generate a series of values, from
start to
stop
- with a step size of one.
+ with a step size of one
setof int or setof bigint (same as argument type)
Generate a series of values, from
start to
stop
- with a step size of
step.
+ with a step size of
step