PostgreSQL
 SQL >> Database >  >> RDS >> PostgreSQL

Cercare posizioni negli array PostgreSQL

Usa generate_subscripts per scorrere le posizioni dell’array e restituire il primo indice corrispondente. Per confronti NULL-safe usa IS NOT DISTINCT FROM invece di =.