So I achieved what I need by following way
cur.execute("SELECT table_name FROM user_tables")
result = cur.fetchall()
for row in result:
cur.execute('DROP TABLE ' + row[0] + ' CASCADE CONSTRAINTS')*
Thanks much Luke for your idea.
Question
I am new to python. Could someone help me to figure out how to execute following commands using cx_Oracle in python?
I know I can use cursor.execute() for 2nd command but for other non sql commands specially 1 & 3 I am not getting any clue.
Appreciate if someone can help.
Thanks, Aravi
La solution
So I achieved what I need by following way
cur.execute("SELECT table_name FROM user_tables")
result = cur.fetchall()
for row in result:
cur.execute('DROP TABLE ' + row[0] + ' CASCADE CONSTRAINTS')*
Thanks much Luke for your idea.