Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SELECT REPLACE (
REPLACE (trigger_sql,
'{INSERT_SET_CLAUSE}',
insert_column_list || ';'),
'{UPDATE_SET_CLAUSE}',
update_column_list || ';')
trigger_sql
FROM table_agg_stg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment