Posts by Tiago Souza • 21 points
1 post
-
2
votes3
answers1598
viewsQ: How to create a FUNCTION to format currency in POSTGRE?
I created one, but it didn’t work out: CREATE FUNCTION formatar_moeda(valor FLOAT) RETURNS VARCHAR(15) AS $$ DECLARE formatado VARCHAR(15); BEGIN SET formatado = NUMBER(valor,2); SET formatado =…
postgresqlasked Tiago Souza 21