Open GoogleCodeExporter opened 9 years ago
你是说调用默认分页存储过程?
最好帖一下你的ASP源码。
Original comment by Tainray@gmail.com
on 25 May 2009 at 5:07
pagevar="easp_sp_pager"
sqlwhere=""
sqlarray=Array("INFO_GOODS_TABLE","*",sqlwhere,"INFO_VALIDATE_TIME
desc","INFO_ID",3)
Set g_rs_public = Easp.db.GetPageRecord(pagevar,sqlarray)
就是这样调用的.
Original comment by hqbvq...@gmail.com
on 25 May 2009 at 5:58
不调用存储过程的话是可以正常运行的.
Original comment by hqbvq...@gmail.com
on 25 May 2009 at 6:05
郁闷我发现时你的说明文档有问题.如下:
(3) 当使用EasyASP自带的默认存储过程"easp_sp_pager"时,arrayConfig 为以下格式:
Array(Table, Fields, Where, OrderBy, PrimeKey, SortType)
Table - 表名, Fields - 字段名, Where - 条件(不包含"Where"), OrderBy - 排序(不包
含"Order By",SortType为3时生效), PrimeKey - 主键名, SortType -
排序类型(1主键升序,2主键
降序,3其它排序)。
PrimeKey是主键名好像不对吧?我那段程序"INFO_ID"是主键名,一定�
��报错的,因为我排序的使用
"INFO_VALIDATE_TIME
desc",我就把这个主键改为"INFO_VALIDATE_TIME",这样就可以了.所以�
��这个
应该不是主键名,应该是排序用的字段才对吧.请给个解释.不��
�道是否用错了.
Original comment by hqbvq...@gmail.com
on 25 May 2009 at 7:37
你可能没有看存储过程内的使用说明。使用多字段排序时,��
�须把主键的排序加上。
所以你可以用:
sqlarray=Array("INFO_GOODS_TABLE","*",sqlwhere,"INFO_VALIDATE_TIME desc,INFO_ID
Asc","INFO_ID",3)
Original comment by Tainray@gmail.com
on 25 May 2009 at 7:44
Original issue reported on code.google.com by
hqbvq...@gmail.com
on 25 May 2009 at 4:50