Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to print the SQL query along with the output in Python CX_ORACLE module

nm_012-OracleMar 17 2021

Hi,
I was trying CX_ORACLE module in PYTHON and my first python script with 'select name from v$database' query was successful.
However, i want both the query as well as the output to be displayed instead of only the query output.
how to achieve this?

thanks
Naveen

Comments

Post Details

Added on Mar 17 2021
2 comments
7,356 views