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

前端 未结 10 1684
执念已碎
执念已碎 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 18:06

    You cannot pass user/table name to pl/sql with a parameter. You can create a procedure and build sql and then execute immediately to achieve that.

提交回复
热议问题