Similar to the
method, but returns a generator object to iterate through
cmd_query_iter() when sending
multiple statements, and separate the statements with
The following example shows how to iterate through the results after sending multiple statements:
statement = 'SELECT 1; INSERT INTO t1 VALUES (); SELECT 2' for result in cnx.cmd_query_iter(statement): if 'columns' in result: columns = result['columns'] rows = cnx.get_rows() else: # do something useful with INSERT result
Returns a generator object.
Copyright © 2012, 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices