AN
Size: a a a
AN
D
ac
А
МШ
D
AD
ДМ
CREATE OR REPLACE FUNCTION public.find_customers_for_imitation(ids bigint[])
AD
А
А
YS
ac
AD
А
YS
CREATE OR REPLACE FUNCTION public.find_customers_for_imitation(ids bigint[])
ac
ДМ
CREATE OR REPLACE FUNCTION public.find_customers_for_imitation(ids bigint[])Error [42703]: ERROR: column "ids" does not exist
RETURNS setof contacts_count
LANGUAGE plpgsql
AS $function$
begin
create or replace view contacts_count as
select contacts.user_id, count(contacts.user_id)
from contacts
where contacts.user_id = any(ids)
group by contacts.user_id;
END;
SQL
D
YS
CREATE OR REPLACE FUNCTION public.find_customers_for_imitation(ids bigint[])Error [42703]: ERROR: column "ids" does not exist
RETURNS setof contacts_count
LANGUAGE plpgsql
AS $function$
begin
create or replace view contacts_count as
select contacts.user_id, count(contacts.user_id)
from contacts
where contacts.user_id = any(ids)
group by contacts.user_id;
END;
SQL