Search
 
SCRIPT & CODE EXAMPLE
 

SQL

grant permission in postgres

GRANT ALL PRIVILEGES ON DATABASE db_name TO username;
Comment

list all permissions on a table in postgres

SELECT grantee, privilege_type 
FROM information_schema.role_table_grants 
WHERE table_name='mytable'
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 :: mysql update add to existing value 
Sql :: recently updated stored procedure in sql server 
Sql :: postgresql set auto increment value 
Sql :: syntaxerror unexpected identifier mysql 
Sql :: spring where to put the data sql 
Sql :: mysql select update same table 
Sql :: drop multiple columns in sql 
Sql :: show the colums of table sql 
Sql :: oracle select first row order by 
Sql :: oracle sql pad left zeros 
Sql :: show table postgres command 
Sql :: group_concat in mysql 
Sql :: replace null value within column mysql 
Sql :: update auto increment value in mysql 
Sql :: delete all value query 
Sql :: drop primary key oracle 
Sql :: eliminate zero from integer mysql 
Sql :: check table exist postgresql 
Sql :: use float in sql server string 
Sql :: sort by sql 
Sql :: sql count null values in all columns 
Sql :: oracle temporary table 
Sql :: sql now 
Sql :: if in mysql 
Sql :: activate log mariadb 
Sql :: postgresql delete multiple rows 
Sql :: mysql remove auto increment 
Sql :: com.mysql.cj.exceptions.InvalidConnectionAttributeException more than one time zone. You must configure either the server or JD value if you want to utilize time zone support. 
Sql :: mysql load sql from file 
Sql :: how to delete data from sql database in android 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =