Fetching Data
After executing the SQL statement for reading records from a table, either of the following methods can be used to retrieve them in python.
fetchone
: It retrieves one record at a time in the form of a tuple.fetchall
: It retrieves all fetched records at a point in the form of tuple of tuples.
No comments:
Post a Comment
If you have any doubts, Please let us know.