| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- cc챔피언
- 중1코딩
- jquery
- upbit
- largelanguagemodels
- Android
- c# 학습
- Linq
- python
- MS-SQL
- 아이코딩습관
- ASP.NET MVC
- 엔트리
- MSSQL
- 코딩입문
- html
- 한글깨짐
- C# 프로그래밍
- league of legends
- 일본여행
- c#
- 블록코딩
- 프론트엔드
- Excel
- httpclient timeout
- MYSQL
- data-attributes
- JavaScript
- swift 화면전환
- 중학생코딩
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