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