Database | 데이터베이스

PostgreSQL 쿼리문

iIxmont 2018. 11. 18. 06:53

 

SQL 쉘을 켠다.

 

 

테이블 생성

 

create table 테이블이름(

컬럼명 자료형

컬럼명 자료형

);

 

select 문

 

select * from 테이블명

 

insert 문

 

insert into user_table( 컬럼1 , 컬럼2 ) values ( 값1 , 값2 );

 

update 문

 

update table_name set column1 = 값1 where 조건

 

delete 문

 

delete from table_name where 조건

 

PostgreSQL 에서는 아래 도구를 사용해서 DB를 조작 할 수도 있다.

 

pgadmin4