AmusedGrape
02/01/2022, 3:20 AMgaryaustin
02/01/2022, 3:47 AMAmusedGrape
02/01/2022, 3:48 AMgaryaustin
02/01/2022, 3:48 AMgaryaustin
02/01/2022, 3:49 AMgaryaustin
02/01/2022, 3:50 AMAmusedGrape
02/01/2022, 3:51 AMsql
do
$$
declare temprow record;
begin
FOR temprow IN SELECT * FROM auth.users LOOP
insert into public.profiles (id, email, preferred_name, identity_data, access)
values (temprow.id, temprow.email, temprow.raw_user_meta_data.name, temprow.raw_user_meta_data, '');
END LOOP;
end;
$$;
and i'm getting
missing FROM-clause entry for table "raw_user_meta_data"
assuming its that i'm trying to get the name form the metadata jsonbAmusedGrape
02/01/2022, 3:52 AMgaryaustin
02/01/2022, 3:57 AMgaryaustin
02/01/2022, 3:58 AM