concat in postgres
Hey! I want to concat few columns to get address, however query is built in wrong way cuz postgres uses
||
to concat. What am I doing wrong?
I made it with raw sql for now but I wonder what is proper way1 Reply
You are literally asking Kysely to create a function call to
concat
function. Why are you surprised it does that?
Postgres concat is done using the ||
operator. The call to concat
is useless there.
Also, postgres DOES have a concat
function
And functions always take comma separated arguments.
The following two queries are identical: