cpeters5
asked on
Python loop example
I need an example of python code that does the following
execute the query "select id, col1, col2 from tab1"
Then Iterate through the query results
Thanks
execute the query "select id, col1, col2 from tab1"
Then Iterate through the query results
Thanks
ASKER
Thanks plusone3055
Would you please expand a little? Within th eloop, I want to do one thing with col1 and another with col2.
Would you please expand a little? Within th eloop, I want to do one thing with col1 and another with col2.
ASKER
I want to see explicit syntax for getting individual elements off row.
say, printing col1 and col2 in two separate print statements.
Sorry, a newbie.
Thanks
say, printing col1 and col2 in two separate print statements.
Sorry, a newbie.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window