ORA-01036 illegal variable name/number in 5.25.39.0
Posted: Thu 28 Jan 2010 07:08
I have this error when run this code:
string sql = "select * from customer_profile where profile_id = :1";
OracleCommand oraCursorCommand = new OracleCommand(sql, conn);
oraCursorCommand.CommandType = CommandType.Text;
oraCursorCommand.Parameters.Add("p1", OracleDbType.Long).Value = 68;
Why? I do not have this error while using ODP.Net!
string sql = "select * from customer_profile where profile_id = :1";
OracleCommand oraCursorCommand = new OracleCommand(sql, conn);
oraCursorCommand.CommandType = CommandType.Text;
oraCursorCommand.Parameters.Add("p1", OracleDbType.Long).Value = 68;
Why? I do not have this error while using ODP.Net!