//查询是否存在符合条件的信息项
       public static bool findperson(string pID)
       {
           SqlConnection con=DB.createCon ();
           con.Open();
           SqlCommand cmd=new SqlCommand ("select count(*) from person where pID="+pID,con);
           int count;
           count =Convert.ToInt32(cmd.ExecuteScalar());
           if(count>0)
           {
               return false;
           }
           else
               return true;
           con.Close();
       }数据库中pID是varchar型的,当输入pID为整形时程序执行正确,
当输入输入pID为字符型如'e'就会出现cmd.ExecuteScalar())执行出错,提示说“列名 'e' 无效”,是什么原因啊,各位帮忙看下谢谢了