Search
 
SCRIPT & CODE EXAMPLE
 

SQL

docker postgres create database

$ docker exec -it my_postgres psql -U postgres -c "create database my_database"
Comment

docker create postgresql database

docker run --name postgres-db -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
Comment

how to recreate postgres database in docker

docker compose down
docker compose up --force-recreate
Comment

docker create postgres db

# inside Dockerfile
COPY your_sql_file.sql /docker-entrypoint-initdb.d/
Comment

PREVIOUS NEXT
Code Example
Sql :: how to query date in sql server 
Sql :: sql select first and last record of each group 
Sql :: postgresql Create a new role with a username and password 
Sql :: SQL ORDER BY DESC (Descending Order) 
Sql :: how to connect sql database in python 
Sql :: output table plsql 
Sql :: show database cmd 
Sql :: SQL ORDER BY ASC (Ascending Order) 
Sql :: update with inner join sql server 
Sql :: update con select postgresql 
Sql :: mysql grant select update insert delete 
Sql :: Inner join - to join 3 tables - https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-inner-join/ 
Sql :: convert multiple columns to rows in sql server 
Sql :: alter table add check constraint oracle 
Sql :: distinct sql 
Sql :: mysql run sql file 
Sql :: mysqlclient error 
Sql :: how to change column name in mysql 
Sql :: sql server select last row of each item in group by column 
Sql :: calculate percentage in sql 
Sql :: delete data from database sqlite android 
Sql :: mysql select statement after index 
Sql :: intellij mysql set timezone 
Sql :: find number of entries sql 
Sql :: athena create table 
Sql :: How to insert data in mysql ? 
Sql :: mysql locate 
Sql :: install mysql 5.7 ubuntu 20.04 
Sql :: how to create a table structure from another table in mysql 
Sql :: select last n rows mysql 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =