ORA-01036: illegal variable name/number when running query through C#

前端 未结 10 1649
执念已碎
执念已碎 2020-12-06 17:20

I am trying to use ALTER USER query for Oracle database using OracleCommand in C# in the following code. It creates the query if the values for Username and pas

10条回答
  •  自闭症患者
    2020-12-06 17:50

     cmd.Parameters.Add(new OracleParameter("GUSERID ", OracleType.VarChar)).Value = userId;
    

    I was having eight parameters and one was with space at the end as shown in the above code for "GUSERID ".Removed the space and everything started working .

提交回复
热议问题