Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle grant select on schema

BEGIN
   FOR R IN (SELECT owner, table_name FROM all_tables 
             WHERE owner='OTHER_SCHEMA') LOOP
      EXECUTE IMMEDIATE 'GRANT SELECT, INSERT, UPDATE, DELETE ON ' ||
                         R.owner || '.' || R.table_name || ' TO MY_SCHEMA';
   END LOOP;
END;
Comment

PREVIOUS NEXT
Code Example
Sql :: update query formula in excel 
Sql :: reset identity column values in sql server 
Sql :: script to add datafile to tablespace 
Sql :: sql delete multiple conditions 
Sql :: mysql output csv 
Sql :: mysql data types 
Sql :: postgresql insert select 
Sql :: if not exists insert sql 
Sql :: phpmyadmin delete user 
Sql :: sql rename column 
Sql :: real world example of nosql 
Sql :: DB::transaction 
Sql :: psql show columns of table 
Sql :: mysql docker 
Sql :: epoch time converter in snowflake 
Sql :: zsh: command not found: mysql mamp 
Sql :: How to convert Varchar to Double in sql? 
Sql :: mysql procedures 
Sql :: sql create a new table 
Sql :: mysql start command 
Sql :: spring import sql 
Sql :: mysql order 
Sql :: mysql install with docker 
Sql :: tsql insert 
Sql :: sql add column to table 
Sql :: brew install mysql 8 
Sql :: postgresql dump and restore db 
Sql :: convert money to varchar sql server 
Sql :: how to assign date field for table in mysql 
Sql :: How do I add a user to a postgres database? cli 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =