不好意思,标题中的代码是我抄别的帖子的,我的是这么写的(大概):
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O /°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O string sss=“select VC_APPLICATIONSID FROM DECISION where APP=:APP”;
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O OracleParameter[] parameters = {
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O new OracleParameter(":VC_APPLICATIONSID",OracleType.VarChar,200)};
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O parameters[0].Value = "123456";
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O cmd.CommandText = cmdText;
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O foreach (OracleParameter parm in cmdParms)
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O {
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O cmd.Parameters.Add(parameters );
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O }
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O OracleDataAdapter da = new OracleDataAdapter(cmd)
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O da.Fill(ds);
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O /°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O ---------------------------
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O 2楼的string str = Cmd.CommandText;
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O 结果为:select VC_APPLICATIONSID FROM DECISION where APP=:APP
/°Î!&ÏS®À®forum.entlib.net.cnx5%æá´O