Topography of IT

갈대적 속성의 ITer

Data/PostgreSQL 4

[PostgreSQL] Oracle_fdw for Windows

PostgreSQL 설치 서버에 라클 클라이언트가 필요함 Step-1 C:\oracle\instantclient_11_2 Instant Client for Microsoft Windows (x64) 64-bit (oracle.com) Step-2 오라클 클라이언트 환경변수 설정 진행 Variable name ---> TNS_ADMIN Variable value ---> C:\oracle\instantclient_11_2 request-response.tistory.com/6 Step 3 클라이언트 설치 진행 C:\oracle\instantclient_11_2 odbc_install.exe 실행 Step 4 tnsnames.ora 설정 (C:\oracle\instantclient_11_2\ tnsnames..

Data/PostgreSQL 2021.03.16

[PostgreSQL] Excel(csv) import

Excel Data 를 ​DB 에 입력하는 방법 ​Postgres 계정으로 DataBase 를 생성한다. => CREATE DATABASE inputtest; DB 생성 후 , Table 을 생성한다. => CREATE TABLE list ( Name varchar(10), Age int NOT NULL ); 생성을 다 한 후, 엑셀 파일에서 데이터를 적은 후 다른이름으로 저장( *.csv ) 을 한다. 데이터를 적어놓을 때 필드명은 지우고 데이터만 남긴다. ​ ​ ​ 생성한 DB에 접속을 한 후에 원하는 엑셀파일을 COPY 한다 => COPY 테이블명(컬럼명,..) FROM '절대경로/파일명.csv' CSV; ​

Data/PostgreSQL 2020.08.19