Professional Documents
Culture Documents
Snowflake
Snowflake
BEGIN
----source count
select count(*)
into l_source_col_count
from information_schema.columns
where table_schema = 'TRG'
and table_name = 'EMP_SOURCE';
select count(*)
into l_target_col_count
from information_schema.columns
where table_schema = 'TRG'
and table_name = 'EMP_TARGET';
END;
$$;