cmd.CommandText = "select * from table where col like :XYZ ";
OracleParameter op = new OracleParameter( ":XYZ ", OracleType.NVarChar);
op.Value = "% " + textBox1.Text.Trim() + "% ";
cmd.Parameters.Add(op);
怎样应用OracleParameter怎样写like查询语句?
最新推荐文章于 2021-04-03 03:21:49 发布