Search
 
SCRIPT & CODE EXAMPLE
 

SQL

grant permission in postgres

GRANT ALL PRIVILEGES ON DATABASE db_name TO username;
Comment

Check user permissions on postgres database

select * from information_schema.role_table_grants where grantee='<user>';
Comment

postgres user permissions

grant select, insert, <other_permissions> on <table> to <role>;
Comment

postgresql user permissions to database

sudo -u postgres 
psqlpostgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql select rows with different values in one column 
Sql :: oracle sql copy table without data 
Sql :: get week day from date in sql 
Sql :: como consultar registros duplicados en mysql 
Sql :: mysql order by multiple columns 
Sql :: mysql date equals to current_date plus days 
Sql :: oracle index size 
Sql :: sql replace single quote 
Sql :: row to json in sql server 
Sql :: select columns postgres 
Sql :: oracle duration between timestamps 
Sql :: how to remove unique key in mysql 
Sql :: Write an SQL query to print details of the Workers whose FIRST_NAME ends with ‘a’. 
Sql :: sql find table by name 
Sql :: SQL Add Column in a Table 
Sql :: sql view talbe columns 
Sql :: mysql not defined 
Sql :: install latest mysql 8 linux server 
Sql :: odd record sql query 
Sql :: declare table variable sql 
Sql :: sql delete duplicate rows 
Sql :: How to backup databases using psql 
Sql :: exec procedure pl sql 
Sql :: delete from IN subquery 
Sql :: How to import CSV file into a MySQL table 
Sql :: postgres get number of days between two dates 
Sql :: login failed for login due to trigger execution 
Sql :: mysql create table index 
Sql :: sqlite 3 mac 
Sql :: mysql add hours to time field 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =