0
I have an update to a field
permissao_ver
Being the same guy bigint[]
, field response : '{1,2,3,4,5,11,44,56,75,11}'
My Query
UPDATE callcenter.pausa
SET permissao_ver = '{"(SELECT cod_grupo FROM crm.usuariosgrupos
WHERE habilitar = 1)"}'::bigint[]
WHERE habilitado = 1 AND permissao_ver is null
I need to get the codes that select will return me from giving an update in this field bigint[]
'{XX,XX,XX,X,XX,X}'
Is the cod_group field already an array (bigint[])? In update you want to simply replace one array with another or merge the existing value with the subselect result?
– Camilo Santos