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 :: psql lst trigger 
Sql :: copy column data to another column sql with creating slugs 
Sql :: cannot pip install mysqlclient 
Sql :: how to give user privelege to create dblink in oracle 
Sql :: oracle cpu per session 
Sql :: sql how to replace full stop 
Sql :: drop db syntax 
Sql :: mysql format date 
Sql :: count mysql server db tables 
Sql :: reset auto increment in sql 
Sql :: sql getdate minus 1 day without time 
Sql :: Postgres upgrade to superuser 
Sql :: sql server add identity column to existing table 
Sql :: dynamics 365 x++ aggregate querybuilddatasource 
Sql :: mysql id of inserted row 
Sql :: postgresql random number 
Sql :: postgres check blocking 
Sql :: oracle check numeric 
Sql :: oracle get nls settings 
Sql :: oracle character index 
Sql :: get rows affected mysql python 
Sql :: oracle apex list connected users 
Sql :: create database store 
Sql :: select sql in descending order 
Sql :: sql select except null 
Sql :: mysql with rollup 
Sql :: sql server 2008 first and last day of month 
Sql :: mysql select last row for each group 
Sql :: Step 1: Installing MySQL Client You can install MySQL client directly through pip using the command pip install mysqlclient 
Sql :: using distinct count in sqlite3 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =