- postgreSQL 설치
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
Community DL Page
Note: EDB no longer provides Linux installers for PostgreSQL 11 and later versions, and users are encouraged to use the platform-native packages. Version 10.x and below will be supported until their end of life. For more information, please see this blog p
www.enterprisedb.com
- sql shell (psql) 실행
enter X4
설치할 때 입력한 암호 입력
- 버전 확인하기
select version();
- pgAdmin 4 사용하기
경로 : C:\Program Files\PostgreSQL\15\pgAdmin 4\bin
- 사용자 생성
General > Name 입력
Definition > Password 입력
Privileges - 권한 설정
- Database 생성
General > Database 입력
> Owner 선택
- 테이블 및 컬럼 생성
Database > Schemas > Tables : 우클릭 > Create > Table
+ 버튼으로 컬럼을 추가해서 만들 수 있음
테이블 생성 이후에는 Columns : 우클릭 > Create > Column 으로 추가 할 수 있음
- SQL문 실행하기
'개발 > SQL' 카테고리의 다른 글
[SQL] Oracle - MERGE (+ MyBatis에서 동적으로 사용) (1) | 2023.03.16 |
---|---|
[SQL] Oracle - SEQUENCE (0) | 2022.10.05 |
[SQL] Oracle - VIEW (0) | 2022.10.05 |
[SQL] Oracle - (TCL) 트랜잭션(TRANSACTION) / COMMIT / ROLLBACK / SAVEPOINT (0) | 2022.10.04 |
[SQL] Oracle - (DCL) GRANT / REVOKE (0) | 2022.10.04 |