Help Center/
GaussDB/
Developer Guide(Distributed_2.x)/
Application Development Guide/
Psycopg-based Development/
Processing the Result Set
Updated on 2023-10-23 GMT+08:00
Processing the Result Set
- cursor.fetchone(): Fetches the next row in a query result set and returns a sequence. If no data is available, null is returned.
- cursor.fetchall(): Fetches all remaining rows in a query result and returns a list. An empty list is returned when no rows are available.
For GaussDB-specific data types, such as tinyint, the corresponding fields in the query result are character strings.
Parent topic: Psycopg-based Development
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot