Search
 
SCRIPT & CODE EXAMPLE
 

SQL

do postgresql

DO $$DECLARE r record;
BEGIN
    FOR r IN SELECT table_schema, table_name FROM information_schema.tables
             WHERE table_type = 'VIEW' AND table_schema = 'public'
    LOOP
        EXECUTE 'GRANT ALL ON ' || quote_ident(r.table_schema) || '.' || quote_ident(r.table_name) || ' TO webuser';
    END LOOP;
END$$;
Comment

PREVIOUS NEXT
Code Example
Sql :: t-sql create trigger 
Sql :: linq join 
Sql :: SQL Error 1040 : Too many connections 
Sql :: get records in sql according to month name and count 
Sql :: sort by sql 
Sql :: how to enable extension in postgreSQL 
Sql :: postgres select duplicate columns 
Sql :: sql count null as 0 
Sql :: sql convert datetime to year 
Sql :: mysql money value 
Sql :: sql command to show all tables 
Sql :: sql email Regex 
Sql :: mysql user 
Sql :: average sql 
Sql :: Inner join - to join 3 tables - https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-inner-join/ 
Sql :: mysql remove first and last character from string 
Sql :: postgresql delete multiple rows 
Sql :: sql constraint check value in list 
Sql :: SQL Modify Column in a Table -PostgreSQL 
Sql :: regenerate assets odoo 
Sql :: mysql identified by syntax error 
Sql :: postgres update single column 
Sql :: sql cnvert bit to nvarchar 
Sql :: query to find object dependencies in oracle 
Sql :: sql if example 
Sql :: mysql order by date asc null last 
Sql :: postgres trigger insert into another table 
Sql :: move table to a different schema 
Sql :: second highest salary in sql 
Sql :: exec procedure oracle 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =