sql - WITH statement not working in Postgresql -
i have following sql query run in pgadmin:
with table1 ( select int1, int2, int3 atbl ) select int1, <complex computation involving large number of values of int2 , int3 table1> table1
the result of running error message:
error: syntax error @ or near "with" line 1: table1
why happen? statement should available postgresql:
http://www.postgresql.org/docs/8.4/static/queries-with.html
it understood version lower 8.4. there alternative using achive same results?
i found this , this helpful. , make sure using version >= 8.4 that's when introduced. not having ; shouldn't issue.
your syntax looks correct though... works.
with table1 ( select * atbl ) select * table1
so i'd check version running. give error experiencing.
Comments
Post a Comment