delete_unique.sql 374 Bytes
\t

SELECT 'alter table zakonczenia drop constraint '|| constraint_name || ';' FROM information_schema.table_constraints WHERE constraint_type = 'UNIQUE' AND table_name = 'zakonczenia';

SELECT
    'alter table odmieniasie drop constraint ' || constraint_name || ';'
FROM information_schema.table_constraints
WHERE constraint_type = 'UNIQUE' AND table_name = 'odmieniasie';