List index out of bounds(1) 请详细解释一下
Amom 2003-07-16 10:16:55 我做一个添加页面,因为需要顺序,所以加了一个排序字段IOrder,在添加之前需要查出最大的IOrder,可现在查询时报错
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
/suotong/admin/Product/AddProductDo.asp, 第 28 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
页:
POST 79 bytes to /suotong/admin/Product/AddProductDo.asp
POST 数据:
ptID=2&Title=asdf&body=%CA%E4%C8%EB%C4%DA%C8%DD%A3%BAasdf&article=%CC%E1+%BD%BB
我把SQL语句用一个ACCESS查询分析器试了,报List index out of bounds(1),请解释
SELECT TOP 1 IOrder AS IOrder FROM Product WHERE ptID=2 ORDER BY IOrder DESC
数据库为Access