cstr(id)可能有问题,你直接写sql = "select * from xinxi where username='"&username&"' and id="&trim(request("id"))