I am trying to fetch data from a view in Postgres using Java/ Vaadin. But I get error that table do not have primary key. But Postgres donot support keys on view.
Can someone help on how to do that query?
I am trying to fetch data from a view in Postgres using Java/ Vaadin. But I get error that table do not have primary key. But Postgres donot support keys on view. Can someone help on how to do that query? |
|||||||||||||||||
|
you can make key to primary key in postgres like this
EDIT Use this link for query on view: queries for postgresql view |
|||||
|