Computer Science
Name the method which is used for displaying only one record from the result set.
- fetchmany()
- fetchno()
- fetchall()
- fetchone()
Python MySQL
1 Like
Answer
fetchone()
Reason — The fetchone() method fetches only one record from the result set in the form of a tuple or a list.
Answered By
2 Likes
Related Questions
Which software is used for coding the Python language?
- Idea
- IDLE
- Python Script
- Connector
Which command is used for counting the number of rows in a database?
- row
- rowcount
- count()
- row_count
To execute all the rows from the result set, which method is used?
- fetchall()
- fetchone()
- fetchmany()
- none of these
Pick the correct username used for logging in database.
- root
- local
- directory
- host