是字符类型吧:改成这样(用单引号引起来,下面那个也一样): sql="select * from SmallClass where SmallClassID='"&request("SmallClassName") &"'"