As said in cx_oracle documentation, for getting rows of a query i should write a for loop. e.g.:
with connection.cursor() as cursor:
for row in cursor.execute("select * from MyTable"):
print(row)
how can I take these rows without for loop? btw, I may use JSON_OBJECT to directly get JSON from oracle. thanks for your attention:)
fetch[one|many|all]method of the cursor object rather than looping overcursor.executeas long as the result of this call is not defined (i.e. implementation-dependent)