|
ascii(text)
- integer
+ integer
ASCII code of the first character of the argument
ascii('x')
120
|
initcap(text)
text
- Convert first letter of each word (whitespace-separated) to upper case
- initcap('hi thomas')
+
+ Convert the first letter of each word to uppercase and the
+ rest to lowercase. Words are sequences of alphanumeric
+ characters separated by non-alphanumeric characters.
+
+ initcap('hi THOMAS')
Hi Thomas
|
integer
- Number of characters in string
+ Number of characters in
string.
length
- text
+ text
Fill up the
string to length
length by prepending the characters
text
Remove the longest string containing only characters from
-
characters from the start of the string.
+
characters from the start of
ltrim('zzzytrim', 'xyz')
trim
text
- Calculates the MD5 hash of given string, returning the result in hexadecimal.
+ Calculates the MD5 hash of
string,
+ returning the result in hexadecimal.
md5('abc')
900150983cd24fb0 d6963f7d28e17f72
|
- repeat(<type>text, integer)
+
repeat(<parameter>string text, number integer)
text
- Repeat text a number of times
+
Repeat string the specified
repeat('Pg', 4)
PgPgPgPg
text
Remove the longest string containing only characters from
-
characters from the end of the string.
+
characters from the end of
rtrim('trimxxxx', 'x')
trim
|
AM or A.M. or
PM or P.M.
- meridian indicator (upper case)
+ meridian indicator (uppercase)
|
am or a.m. or
pm or p.m.
- meridian indicator (lower case)
+ meridian indicator (lowercase)
|
Y,YYY
|
BC or B.C. or
AD or A.D.
- era indicator (upper case)
+ era indicator (uppercase)
|
bc or b.c. or
ad or a.d.
- era indicator (lower case)
+ era indicator (lowercase)
|
MONTH
- full upper-case month name (blank-padded to 9 chars)
+ full uppercase month name (blank-padded to 9 chars)
|
Month
|
month
- full lower-case month name (blank-padded to 9 chars)
+ full lowercase month name (blank-padded to 9 chars)
|
MON
- abbreviated upper-case month name (3 chars)
+ abbreviated uppercase month name (3 chars)
|
Mon
|
mon
- abbreviated lower-case month name (3 chars)
+ abbreviated lowercase month name (3 chars)
|
MM
|
DAY
- full upper-case day name (blank-padded to 9 chars)
+ full uppercase day name (blank-padded to 9 chars)
|
Day
|
day
- full lower-case day name (blank-padded to 9 chars)
+ full lowercase day name (blank-padded to 9 chars)
|
DY
- abbreviated upper-case day name (3 chars)
+ abbreviated uppercase day name (3 chars)
|
Dy
|
dy
- abbreviated lower-case day name (3 chars)
+ abbreviated lowercase day name (3 chars)
|
DDD
|
RM
- month in Roman numerals (I-XII; I=January) (upper case)
+ month in Roman numerals (I-XII; I=January) (uppercase)
|
rm
- month in Roman numerals (i-xii; i=January) (lower case)
+ month in Roman numerals (i-xii; i=January) (lowercase)
|
TZ
- time-zone name (upper case)
+ time-zone name (uppercase)
|
tz
- time-zone name (lower case)
+ time-zone name (lowercase)