파이썬 pymysql fetchone() :: Hide

파이썬 pymysql fetchone()

Posted by Hide­
2017.11.09 01:08 Coding/Python

# Using a while loop cursor.execute("SELECT * FROM employees") row = cursor.fetchone() while row is not None: print(row) row = cursor.fetchone() # Using the cursor as iterator cursor.execute("SELECT * FROM employees") for row in cursor: print(row)



다른 사람들이 많이 읽은 글
이 댓글을 비밀 댓글로

티스토리 툴바