I'm having an issue getting a variable to pass through to an oracle database. I have an insert statment and one of the values are a variable called q1. Q1 is a variable that gets it's value from a radiolistbuton. I can't get the variable to pass through and insert into the db. It's an oracle 10g express db and the insert statement works when a normal string is netered but not with a variable and ideas?
OracleTransacti on txn = conn.BeginTrans action();
OracleCommand cmd = conn.CreateComm and();
cmd.CommandText = "insert into test(test) values (&q1)";
cmd.ExecuteNonQ uery();
txn.Commit();
Thanks for any insight available!
OracleTransacti on txn = conn.BeginTrans action();
OracleCommand cmd = conn.CreateComm and();
cmd.CommandText = "insert into test(test) values (&q1)";
cmd.ExecuteNonQ uery();
txn.Commit();
Thanks for any insight available!
Comment