🌱 How to remove an element from array in postgres

Source
select array_agg(elements)
from (
  select unnest(array[12,3,5,7,8])
  except
  select unnest(array[3,7,8])
) t (elements)
Made by Brandon . If you find this project useful you can donate.