0

I was planning to use the WITH clause with PostgreSQL, but it doesn't seem to support the command. Is there a substitute command?

What I want to do is with one query select several sub-resultsets and use parts of the sub-resultsets to create my final SELECT.

That would have been easy using the WITH clause.

UPDATE:

Opps! I discovered that I misunderstood the error message I got; and pgSQL does support WITH.

2

1 Answer 1

1

PostgreSQL supports common-table expressions (WITH queries) in version 8.4 and above. See common table expressions in the manual.

You should really include your PostgreSQL version, the exact text of the error message, and the exact text of any query you ran in your question. Where practical/relevant also include table definitions, sample data, and expected results.

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.