我在尝试使用OLEDB Connection
.
strSQL = "INSERT INTO test_table (username,password) " +
"VALUES (@user,@pass)";
objCmd = new OleDbCommand(strSQL, objConnection);
objCmd.Parameters.Add("@user", OleDbType.VarChar, 255).Value =TextBox1.Text.Trim();
objCmd.Parameters.Add("@pass", OleDbType.VarChar, 255).Value= TextBox2.Text.Trim();
// execute the command
objCmd.ExecuteNonQuery();
objConnection.Close();
Label1.Text = "Command run";
错误是
异常详细信息:System.Data.OleDb.OleDbException:处理命令期间发生一个或多个错误。ORA-00936: 缺少表达式