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 try catch 
Sql :: second last highest id in sql 
Sql :: add column in mysq 
Sql :: python mysql select 
Sql :: create schema postgres 
Sql :: mysql date greater than 30 days 
Sql :: concat first name and last name in mysql 
Sql :: set sequence value oracle 
Sql :: sql like variable 
Sql :: node and mysql like 
Sql :: mysql get first 2 characters of string 
Sql :: mysql create database charset utf8mb4 
Sql :: sql sum if 
Sql :: create a table with an id in mysql 
Sql :: how to copy data of a table from another database to table of anaother database 
Sql :: show per page table in xampp 
Sql :: sql get domain from url 
Sql :: copy sql table 
Sql :: how to check nls timestamp format in oracle 
Sql :: postgresql show owner of database 
Sql :: how to insert string variable into sqlite database 
Sql :: set all the vluses in calumn in sql to false 
Sql :: truncate left characters mysql 
Sql :: oracle alter table add not null constraint 
Sql :: oracle stop 
Sql :: if then else sqlite 
Sql :: postgresql list columns 
Sql :: mariadb number format 
Sql :: install postgresql on raspberry pi 
Sql :: Uncaught Error: Cannot use object of type mysqli_result as array 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =