Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Funções de texto

Todas as funções desta página recebem text e retornam text, salvo indicação. Comprimentos contam caracteres Unicode; octet_length conta bytes UTF-8.

FunçãoAssinatura/retorno
length, char_length, octet_lengthtext → int4
lower, uppertext → text
substr, substring(text, int4) ou (text, int4, int4) → text
btrim, ltrim, rtrim(text) ou (text, text) → text
replace(text, text, text) → text
strpos(text, text) → int4
left, right(text, int4) → text
lpad, rpad(text, int4) ou (text, int4, text) → text
repeat(text, int4) → text
reverse, initcaptext → text
asciitext → int4
chrint4 → text
concat, concat_wssobrecargas → text
split_part(text, text, int4) → text
translate(text, text, text) → text
starts_with(text, text) → bool

concat ignora argumentos NULL. concat_ws retorna NULL se o separador for NULL.