What version of PSQL are you using?
What's the exact error being returned?
How are you creating the view (what's the actual SQL statement)?
The following works for me using PSQL v10.10:
Code:
create view view1 as select * from class order by name#
select * from view1
CREATE VIEW ME AS
SELECT "SUND__B6Price_Table"."PTABPrice_Table_No", "SUND__B6Price_Table"."DESCDescription"
FROM "SUND__B6Price_Table" "SUND__B6Price_Table"
ORDER BY "SUND__B6Price_Table"."PTABPrice_Table_No
and the error shows first a load of text about links then:-
order<<???>> By "SUND__B6Price_Table"
This is just a simple report but seems to dislike the order function. I have read the order can be in the select area but I do not understand the syntax
Views cannot contain ORDER BY clauses in PSQL v9.x. They are supported in v10.x. You should be able to add the ORDER BY when running the view:
select * from ME order by "SUND__B6Price_Table"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.