반응형
postgre
-
postgreSQL command line에서 사용하기프로그래밍/DB 2018. 4. 11. 14:59
postgreSQL command line에서 사용하기 postgreSQL 접속하기 psql 커멘드를 사용하여 postgreSQL에 접속한다. -U 로 사용자 이름, -d로 접속 데이터베이스를 지정할 수 있다. psql -U username -d dbname -W Password for user username:psql (9.6.6)Type "help" for help. 터미널 접속하기 & 데이터베이스 목록 보기 (\l) dbname=> \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges------------+----------+----------+-------------+-------------+------..