Sql和Oracle中的Sql语句的问题,急~~~~
sql数据库中sql语句如下:
SqlConnection sConn=......
SqlCommand sComm=new SqlCommand("Select count(*) from wfprocess where name=@name",sConn);
int Count=(int)sComm.ExecuteScalar() 这没有任何问题。
Oracle中的表结构和sql数据库的完全一样,但是我同样执行上面类似的语句
OleDbConnection oConn=.........
OleDbCommand oComm=new OleDbCommand("Select count(*) from wfprocess where name=@name",oConn)
当执行到int Count=(int)oComm.ExecutScalar()
抛出异常:System.System.Data.OleDb.OleDbException 说是缺少表达式。
请问这个问题如何解决?????