AKAI TSUKI

System development or Technical something

PostgreSQL

start postgres

try to start postgres by docker. [root@localhost ~]# docker pull postgres Using default tag: latest latest: Pulling from library/postgres 75a822cd7888: Pull complete 68f8c57d4ec8: Pull complete 1ee19503c02a: Pull complete ea8f451ca276: Pul…

Use PostgreSQL in docker.

PostgreSQL https://hub.docker.com/r/library/postgres/start a postgres instance [root@docker01 ~]# docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres Unable to find image 'postgres:latest' locally…

Postgresqlの操作などメモ

パスワード変更 ALTER USER testuser with unencrypted password 'testuser'; データベース一覧 \l データベースを選択する。 \c データベース名 <参考>Javaの型と各DBの型のマッピング http://dounanda.s140.xrea.com/mapping.html

PostgreSQLをインストールしてテーブル作成

pgAdminを使ってテーブルの定義を設定したら SQLが勝手に作成される!次のようなコマンドができた! CREATE TABLE "SAMPLE_INFO" ( "CHECK_NUMBER" character varying(30) NOT NULL, "SEND_TIME" bigint DEFAULT 0, "RECV_TIME" bigint DEFAULT 0, "RESEND_T…