Message posté par : Nicolas Ribot
----------------------------------------
Bonjour,
Si la requête inclut une fonction retournant un ensemble (set-returning function), vous
pouvez aussi utiliser la construction SQL: WITH ORDINALITY:
-----------------
Code :
-- with ordinality
with tmp as (
select '{a, b, c, d}'::text[] as arr
) select ordinality as id, u
from tmp, unnest(arr) with ordinality as u;
id u
1 a
2 b
3 c
4 d
-----------------
Nico
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=336867#p336867
Pour y répondre : geobd(a)ml.georezo.net ou reply de votre messagerie
Pour vous désabonner connectez-vous sur le forum puis Profil / Abonnement
--
Association GeoRezo - le portail géomatique
https://georezo.net