如题,转换成asp+sql server后就出现了这个问题:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]除非同时指定了 TOP,否则 ORDER BY 子句在视图、内嵌函数、派生表和子查询中无效。
/ProductList.asp, 第 468 行
select 语句:
sql= "select top 30 * from xlb where xlbid in(select * from chanpin where cang=0 order by rq desc,sj desc) and cang=0 order by xlbid desc "
本人菜鸟,还望高手给予指点,谢谢了
------解决方案--------------------
sql= "select top 30 * from xlb where xlbid in(select top 100 percent * from chanpin where cang=0 order by rq desc,sj desc) and cang=0 order by xlbid desc "
------解决方案--------------------
in(select 这里只能select 一个字段)
------解决方案--------------------
顶楼上。