在为 ASP.NET 编写的 SQL 语句内插入代码时,必须将所有字符串括在引号 (“ “) 中,并将代码括在括号 ( ) 中:
SELECT * FROM Employees WHERE HireDate >“+ (Request.queryString(“hireDate”))