Search
 
SCRIPT & CODE EXAMPLE
 

SQL

grant all privileges database postgres to user

GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA schema_name TO username;
Comment

postgresql grant owner to user

ALTER DATABASE name OWNER TO new_owner;
Comment

grant all privileges database postgres to user

GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA schema_name TO username;
Comment

grant create table privileges to user in postgres

GRANT privilege_list | ALL 
ON  table_name
TO  role_name;
Code language: PostgreSQL SQL dialect and PL/pgSQL (pgsql)
Comment

PREVIOUS NEXT
Code Example
Sql :: how to add month in update sql 
Sql :: sql count total by foreign key 
Sql :: mysql order by 
Sql :: alternative for LIMIT sql 
Sql :: enable full text search mysql 
Sql :: power bi dax is in the last 3 months 
Sql :: 11:04:35 PM [mysql] Error: MySQL shutdown unexpectedly. 
Sql :: sql server drop database 
Sql :: mysql root permission denied lost 
Sql :: create table with index mysql 
Sql :: oracle dependencies table 
Sql :: mysql find duplicates 
Sql :: list table columns sql 
Sql :: open postgresql.conf 
Sql :: SQL COUNT() With HAVING Clause 
Sql :: INITCAP in Oracle example 
Sql :: sql server convert to guid 
Sql :: postgres role does not exist 
Sql :: SQL COUNT() with WHERE 
Sql :: postgres default value 
Sql :: exec procedure oracle 
Sql :: sql select inside select 
Sql :: delete from inner join sql 
Sql :: array of objects sql 
Sql :: truncate psql 
Sql :: mysql changer nom table 
Sql :: how to define a save method in ruby for sqlite3 databases 
Sql :: how to get parent and child record in single query using sql 
Sql :: postgresql create table as select 
Sql :: new uniqueidentifier in sql 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =