I am trying to execute a select statement for an Oracle database. In my select statement instead of giving the table name directly , I need to retrieve it from an check box and give it in the query. Tried some code but ended up with error...Pls find my code below
if self.checkbox.isChecked():
Text = self.checkbox.text
self.cur.execute(“select * from :tblmn”,(text))
print(cur)
Connection and cursor is already defined but not specified in the code above. Please help me in resolving this. Thanks