You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ClinicalTrialsDataProcessing/export/export_data_postgres_views.sql

7 lines
232 B
SQL

SELECT
'CREATE OR REPLACE VIEW ' || schemaname || '.' || viewname || ' AS ' || definition
FROM pg_views
WHERE schemaname != 'pg_catalog'
and schemaname != 'information_schema' -- Replace with your schema name
;