We have several options if we want to display numbers with a percentage sign in PostgreSQL.
We can use the TO_CHAR()
function to format the number along with the percentage sign. Or we can simply concatenate the number with the percentage sign, either with the CONCAT()
function or with the concatenation operator.