.net连接oracle数据库是,所有变量都不为空,但出现错误ORA-01008: 并非所有变量都已绑定,怎么解决?
SqlHelper.ExecuteNonquery("insertintot_salary(id,empid,year,month,salary,boonel,publi...
SqlHelper.ExecuteNonquery("insert into t_salary(id, empid, year, month, salary, boonel, publish) values(:id,:empid,:year,:month,:salary,:boonel,:publish)", new OleDbParameter(":id", es.Id), new OleDbParameter(":empid", es.EmpId), new OleDbParameter(":year", es.Year), new OleDbParameter(":month", es.Month), new OleDbParameter(":salary", es.Ssalary), new OleDbParameter(":boonel", es.Boonel), new OleDbParameter(":publish", es.Publish));
使用的是using System.Data.OleDb; 展开
使用的是using System.Data.OleDb; 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询