250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Python
- r
- (깃)git bash
- lda
- mysql
- RESFUL
- 토픽추출
- spring MVC(모델2)방식
- 幼稚园杀手(유치원킬러)
- 코사인 유사도
- Topics
- 방식으로 텍스트
- db
- Gmarket
- jsp 파일 설정
- oracle
- 자바
- 크롤링
- java
- Websocket
- 지마켓
- 파이썬
- 네이버뉴스
- 과학백과사전
- word2vec
- 이력서
- 게시판 만들기
- test
- pytorch
- tomoto
Archives
- Today
- Total
무회blog
DB: 200526-pyDB-001.002, DB연동 및 데이터 불러오기 본문
conda install -c anaconda cx_oracle
import cx_Oracle
import time
import pandas as pd
import os
# #한글 지원 방법
# import os
# os.putenv('NLS_LANG', '.UTF8')
os.putenv('NLS_LANG','KOREAN_KOREA.KO16MSWIN949') # 한글 처리 ?
con01 = cx_Oracle.connect("scott/tiger@192.168.182.1:1521/xe")
df_emp01 = pd.read_sql("select * from emp", con=con01)
professor = pd.read_sql("select * from emp",con=con01)
# professor
professor.head()
professor.dtypes
####################################################
# cur = con01.cursor()
# cur.execute("select*from emp")
# for row in cur:
# print(row)
# cur.close()
# con.close()
####################################################
# print(type(df_emp01))
# print(df_emp01)
'Python' 카테고리의 다른 글
python:200526-pyDB-001.003, insert, 단건(oracle) (0) | 2020.05.25 |
---|---|
python:200524-pyDB_입력 모듈 exec_oracle_sql.py test (0) | 2020.05.25 |
python:파이썬에서 DB 연결하기 - 참고자료 (2) | 2020.05.24 |
python: 파이썬 python Basic_Class1 (0) | 2020.05.20 |
python: 20200520-ver06_Premium_python # 20200520-Gmarket-댓글수 엑셀 성공함 (0) | 2020.05.20 |
Comments