Changes between Version 5 and Version 6 of UsersWikiQGIS
- Timestamp:
- 05/25/17 09:41:01 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersWikiQGIS
v5 v6 76 76 When you don't have a unique id for each row you want to display, you can create on on the fly using the SQL windows to load your geometries. 77 77 Simply add in the select : 78 `SELECT row_number() OVER( ) AS id_qgis` , and select id_qgis as the id column in the QGIS list.78 `SELECT row_number() OVER( ORDER BY field1,field2 ) AS id_qgis` , and select id_qgis as the id column in the QGIS list. It is necessary to specify the Order By clause to ensure the same ID is always assigned to the same row, for every query, regardless of the usage of fields and joins that do affect the row order in the result set.