参数名不对,参数名称少了@符号改成: com.Parameters.Add(new SqlParameter("@na",name)); com.Parameters.Add(new SqlParameter("@age",name));