Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
How to check the existence of a row in SQLite with Python? 본문
Python으로 SQLite에서 행의 존재를 확인하는 방법
row = cursor.fetchone()
if row is None:
... # row is not present
else:
... # row is presentsimple
row = cursor.fetchone()
if row:
print "row is present"
else:
print "row is not present"'랭귀지 > python' 카테고리의 다른 글
| pymysql 설치 및 사용 (0) | 2018.11.09 |
|---|---|
| 판다(pandas)를 사용하여 현재 시간을 얻는 방법 (0) | 2018.11.08 |
| [python] os.startfile Windows 특정 프로그램을 실행하는 방법 (0) | 2018.11.04 |
| 파이썬 exe파일 만들기 pyinstaller (0) | 2018.11.03 |
| python 주식 호가로 구매하기 위해 코스닥 코스피 함수 (0) | 2018.11.02 |
Comments