string sql = "select * from student where id like" +"@key";Sqlconnection con = new Sqlconnetion();Sqlcommand com =new Sqlcommand();SqlParameter prmid = new SqlParameter();prmid.ParameterName = "@key";prmid.Value=key;com.Parameters.Add(prmid);
时间: 2024-11-04 14:35:24