PostgreSQL - Advanced PL/pgSQL
Consider this PL/pgSQL snippet:
What will this function return when called if the
DECLARE table_name text := 'users'; rec_count int; BEGIN EXECUTE 'SELECT count(*) FROM ' || table_name INTO rec_count; RETURN rec_count; END;
What will this function return when called if the
users table has 10 rows?