2

I need to combine to a string column and the result of a row_number() calculation into one column.

What I've got is column 1, containing strings and column 2, containing the row_number() result. Now I to combine both into one.

What's the way of this in Postgres? I figured that a simple + or & does not work out.

1 Answer 1

2

Figured it out myself:

table.col || ' ' || row_number()... 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.