在ACCSESS中如何取前10记录?
在SQL中可以这样做:select top 30 from table
但是在ACCSESS中如何实现呢?
问题点数:40、回复次数:13Top
1 楼a_zhe_20(努力工作多赚钱)回复于 2003-12-04 12:57:40 得分 4
select top 10 from table
不就行了。Top
2 楼alexzhang00(三角猫)回复于 2003-12-04 13:06:39 得分 4
select top 10 * from table order by ...Top
3 楼dotnet90(寂寞高手.NET)回复于 2003-12-04 13:08:48 得分 0
为什么我的这句运行没有问题:select * from table但是,这样就不行呢?
select top 10 from table
还有select * from table where a=b没有问题,但是
select * from table where a=b order by id desc就又不行了呢?Top
4 楼jacklinchen(陈)回复于 2003-12-04 13:13:56 得分 4
select top 10 * from table
Top
5 楼yangsm(不要让困难成为理由)回复于 2003-12-04 13:19:58 得分 4
其实也是一样的!Top
6 楼swich(努力赚钱养老婆)回复于 2003-12-04 13:42:46 得分 4
select top 10 * from tableTop
7 楼xiejunhua(兵工厂)回复于 2003-12-04 13:46:08 得分 4
一样,一样的!Top
8 楼perty(帕特)回复于 2003-12-04 13:50:10 得分 4
selelct top 10 * from table_name order by ...Top
9 楼flying310(林林)回复于 2003-12-04 13:52:06 得分 4
select top 10 * from table
一样的.Top
10 楼dotnet90(寂寞高手.NET)回复于 2003-12-04 14:06:35 得分 0
我所有的表都打不开了,我真郁闷呀!
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x484 Thread 0x944 DBC 0x3003dfc Jet'。
/new/admin1/udgonggao.asp,行 4
这是数据库的位置:
DBPath = Server.MapPath("db.mdb")
行4的代码如下:
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
Top
11 楼fuyungril(我要学习.net)回复于 2003-12-04 14:07:14 得分 4
select top 10 * from table order by .......这样就可以了!Top
12 楼liwb(初学者)回复于 2003-12-04 14:26:56 得分 4
select top 10 * from tableTop
13 楼dotnet90(寂寞高手.NET)回复于 2003-12-04 14:27:13 得分 0
太谢谢大家了,揭贴了!Top




