drop 好像是保留字!加个[drop] 或都drop两边加单引号

解决方案 »

  1.   

    select * from aa where b='"& drop &"' and ......................
      

  2.   

    String drop1=Request.Params["val"];
                         String drop2=Request.Params["vall"];
                   SqlDataAdapter myCommand = new  SqlDataAdapter(" select * from aa where b=" & drop &" and c like '%"& textb & "%'" , myConnection);
      

  3.   

    "select * from aa where b='" & drop & "'and c like '%" & textb & "%'"看来还有很多夜猫子!哈哈!
      

  4.   

    楼上的高手们,我用的是C#,在编译过程中提示运算符“&”无法对string类进行转换