일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- upbit
- 초딩수학
- league of legends
- Excel
- swift 화면전환
- Aspose.cells
- 일본여행
- MYSQL
- cc챔피언
- largelanguagemodels
- 썸머노트
- 블록코딩
- python
- 엔트리
- 코딩입문
- httpclient timeout
- Android
- 아이코딩습관
- 한글깨짐
- MS-SQL
- MSSQL
- PromptEngineering
- AIoptimization
- chart.js
- 중학생코딩
- Kakao API Address
- 중1코딩
- .csv
- 오블완
- ASP.NET MVC
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