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 :: multiple left join mysql 
Sql :: display first three characters sql 
Sql :: SQL Server OPENQUERY WITH result SETS 
Sql :: what is cursor in sql server with example 
Sql :: SQL Server OPENJSON FROM table column 
Sql :: postgres get last value 
Sql :: SELECT everything from a sql table 
Sql :: mysql like 
Sql :: sql 2 way of select unique 
Sql :: sql max min 
Sql :: sql describe 
Sql :: drop database mysql 
Sql :: GUI for sqlite mac 
Sql :: mysql pad zeros 
Sql :: sql server find all referencing objects to user-defined table type 
Sql :: SQL AVG() Function 
Sql :: union syntax in oracle 
Sql :: what is truncate in sql 
Sql :: SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause 
Sql :: postgres show table schema 
Sql :: replace sql 
Sql :: bigquery information_schema schema all columns 
Sql :: oracle merge insert if not exists 
Sql :: illuminate database queryexception could not find driver (sql select * from 
Sql :: compound trigger oracle 
Sql :: oracle sql get value from several rows and concatenate strings 
Sql :: into in sql 
Sql :: long string type sql 
Sql :: sql to excel pgadmin 
Sql :: min max in sql 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =