python 에서 oracle 사용하기
pip install cx_Oracle cx_Oracle 패키지를 이용하여 oracle 연결하기. # ./manage.py shell import cx_Oracle #연결에 필요한 정보 conn = cx_Oracle.connect({id}, {password}, {host}) cursor = conn.cursor() cursor.execute(""" select test_seq from dual """) for seq in cursor: print(seq) django settings.py에서 데이타베이스 정보 가져와서 사용하기 # ./manage.py shell from django.conf import settings import cx_Oracle # oracle: settings.py > DATAB..
공부합시다/python
2020. 8. 4. 09:14
- Total
- Today
- Yesterday
TAG
- php-laravel
- 정규식
- session+token authorize
- 나는욕심쟁이
- graphql-php
- composite-primarykey
- Laravel
- addMonth
- 라라벨
- php
- 테스트_다중트랜잭션
- laravel-test
- 자바스크립트
- POP3
- graphql
- VIM-COMMAND
- eloquant
- 둘이상인증한번에사용하기
- vim
- MySQL
- django
- composer-install
- Python
- composer-self-update
- redis
- 정의
- 메일
- addMonthWithoutOverflow
- exception-test
- php-composer
공지사항