Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- flutter
- PER
- urllib
- GIT
- PyQt
- 맛집
- MySQL
- node.js
- IOS
- swift
- 다이어트
- 함수
- MS-SQL
- port
- 라즈베리파이
- Unity
- python
- Excel
- 날짜
- ubuntu
- 유니티
- pandas
- tensorflow
- ASP
- PyQt5
- mssql
- javascript
- 리눅스
- sqlite
- Linux
Archives
아미(아름다운미소)
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 present
simple
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 |