Skip to content
Advertisement

Select in return for postgres query

is it possible to add a select in a return statement?

I tried adding the select name from skills where skill_id = 1 but not sure if this is possible or I just don’t have the syntax right.

Advertisement

Answer

Yes, that is possible, but you have to enclose a subquery in parentheses:

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement