dataset.Tables.Add("人员管理");

解决方案 »

  1.   


    "where 工种='+val+'"
      

  2.   

    楼上的,是:"where 工种='“+val+”'"话说,尽量不要用中文命名
      

  3.   

    把中文符号改成英文的"where 工种='"+val+"'"
      

  4.   

    string cmdstr="select * from 人员管理 where 工种='"+val+"'";
    val是字符串,得加单引号,
      

  5.   

    拼接字符串最好用 String.Format,不容易出错!