suppose i have this code snippet
Dim tab As String = "myTab"
Dim val As String = "field1"
Dim con As String = "...."
Dim qry As String 'should be: "Select * from " & tab & " where value = '" & val & "'"
Dim com As New OracleCommand (qry, con)...
suppose also that the query string (ie the value of qry) is retrieved from a database. I can not pass qry to the oracle command, because it would not be evaluated, ie variables are not bound to their values, and the string is passed literally to the command, causing an error. is there a way to evaluate a string and execute it as a VB statement?