Select a column like Primary Key in a View from PostGIS using PyQGIS in QGIS

المشرف العام

Administrator
طاقم الإدارة
Postgresql doesn't support Primary Key in views.When I load a postGIS view in QGIS "manually", I can choose the column that will be the Primary Key, but I would like to know if I can select a column as Primary Key when I load it using pyQGIS script.

Thank you.



أكثر...
 
أعلى