摘要:
习惯用SQL Server数据库,习惯了存储过程和参数sql语句,然而最近做自己的网站用Access数据时发现了不少问题。最让我纠结的就是top后面不能跟@PageIndex参数,加上(@PageIndex)效果同样没有变化。错误:SELECT 子句中包含一个保留字、拼写错误或丢失的参数,或标点符号不正确。 View Code string sql = "select top (@Page) T_ID,T_Name from TypeList where T_ParentID =@ParentID order by T_TypeOrder,T_CreateDate asc" 阅读全文