Search
 
SCRIPT & CODE EXAMPLE
 

SQL

run postgres with docker

docker run -d --name postgres13 
    -v postgres_data:/var/lib/postgresql/data 
    -e POSTGRES_USER=postgres 
    -e POSTGRES_PASSWORD=postgres 
    -p 5432:5432 
    postgres:latest
Comment

docker run postgres locally

$ docker run -d --name my_postgres -v my_dbdata:/var/lib/postgresql/data -p 54320:5432 postgres:11
Comment

run postgres docker

$ docker run -d --name my_postgres -v my_dbdata:/var/lib/postgresql/data -p 54320:5432 -e POSTGRES_PASSWORD=my_password postgres:13
Comment

run psql postgres docker

docker exec -it <database_name> psql -U <username> -W <username>
Comment

PREVIOUS NEXT
Code Example
Sql :: Mysql query add column with default string value 
Sql :: mysql get last row 
Sql :: postgres delete from where date is greater than specific date 
Sql :: oracle search stored procedures for text 
Sql :: wordpress database query change url 
Sql :: sql concate two columns first and last 
Sql :: select records for day before yesterday mysql 
Sql :: psql get sequences 
Sql :: primary key reset in SQL database 
Sql :: sql alter table add column if exists 
Sql :: get current month mysql 
Sql :: mysql random limit 1 
Sql :: mysql remove unique constraint 
Sql :: mysql your password does not satisfy the current policy requirements 
Sql :: convert int to string in sql server 
Sql :: oracle truncate partition 
Sql :: install mysqldump ubuntu 
Sql :: sql pick random row 
Sql :: add constraint fk 
Sql :: mysql password error create datbase 
Sql :: Erreur SQL sur la requête Index column size too large. The maximum column size is 767 bytes. 
Sql :: set statistics on in ssms 
Sql :: add many column to sap iq table 
Sql :: oracle sql two left digits 
Sql :: sql change password wordpress 
Sql :: sql query with replace function 
Sql :: output to file mysql 
Sql :: get ddl materialized view oracle 
Sql :: change month to name in sql server 
Sql :: how to install sqlite3 python 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =