PostgreSQL 테이블 생성
DB/Postgresql2021. 8. 4. 23:56
PostgreSQL 테이블 생성
먼저 유저로 로그인
postgres=# \c aptdb aptdb
테이블 생성
aptdb=# CREATE TABLE test (
id integer,
name character varying(255));
CREATE TABLE
생성된 테이블 확인
aptdb=# \dt
List of relations
Schema | Name | Type | Owner
--------+------+-------+-------
public | test | table | aptdb
(1 row)
'DB > Postgresql' 카테고리의 다른 글
[mac] postgresql 외부접속 가능하게 변경 (0) | 2021.08.15 |
---|---|
[mac] postgresql 서비스 시작/종료 (0) | 2021.08.15 |
windows 에 PostgreSQL 설치 (0) | 2021.08.05 |
PostgreSQL 사용자 권한 생성 및 사용자 생성 (0) | 2021.08.04 |
Mac 맥에 PostgresSQL 설치하기 (0) | 2021.08.04 |
댓글()