Recent Posts

Sql Distinct As

less than 1 minute read

DISTINCT select distinct c1 from table_name; select distinct c1, c2 from table_name; 첫번째 쿼리문은 첫번째 컬럼인 c1에 중복된 것을 제거한 결과가 나올거고, 두번째 쿼리문은 c1의 ...

postgresql tablespace 사용하기

less than 1 minute read

리눅스 커맨드 상에서 실제 디렉토리 만들기 & 권한 설정 mkdir <tablespace_dir> chown postgres <tablespace_dir> chmod 744 <tablespace_dir> post...