반응형
Postgresql 접근, 삭제, 생성, 조회
데이터 베이스 접근
psql postgres
psql -U username -d dbname
데이터베이스 목록 조회
\l
그 외 조회 기능
더보기
\dt : database 내 table 조회
\d+ : relation 상세 조회
\dS : System table 조회
\dv : view 조회
\dl : Large object 조회
\di : index 조회
\df : function(함수) 조회
\dn : schema 조회
데이터 베이스 생성
CREATE DATABASE dbname;
데이터 베이스 삭제
DROP DATABASE dbname;
출처 - postgresql 공식 문서
https://www.postgresql.org/docs/current/indexes-intro.html
11.1. Introduction
11.1. Introduction # Suppose we have a table similar to this: CREATE TABLE test1 ( id integer, content varchar ); and …
www.postgresql.org
반응형
'Django > DataBases' 카테고리의 다른 글
[Django] VSCode에서 SQLite 사용하는 법 (0) | 2022.11.22 |
---|