일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- rounding
- .csv
- Android
- league of legends
- 썸머노트
- CSV
- Aspose.cells
- 업비트
- Oracle
- PromptEngineering
- chart.js
- LEFT JOIN
- Kakao API Address
- upbit
- MYSQL
- 일본여행
- swift 화면전환
- 초딩수학
- MS-SQL
- Banker's
- largelanguagemodels
- 한글깨짐
- Excel
- Banker's rounding
- MSSQL
- Request.Form
- python
- 오블완
- 나만의 상점
- AIoptimization
Archives
- Today
- Total
DBA
python Microsoft SQL Server (mssql) 사용 하기 - mssql모듈 설치 본문
728x90
반응형
SMALL
# mssql 모듈 설치
$ pip install pymssql
# MSSQL 접속
conn = pymssql.connect(host="", port=, user="sa", password="", database="EXAMPLE", charset="utf8")
cursor = conn.cursor()
cursor.execute("select * from TableName")
row = cursor.fetchone()
while row:
print(row[0], row[1], row[2], row[3])
row = cursor.fetchone()
conn.close()
728x90
반응형
LIST
Comments