主题:[讨论].net中sql查询问题
Dim conn As new OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" & server.mappath("abd.mdb"))
dim ds as new dataset
dim dtable as datatable
dim coldrow as datarowcollection
dim drow as datarow
dim i as integer
dim oledt as new oledbdataadapter("select top 20 * from data",conn)
oledt.fill(ds,"mytabl")
dtable=ds.tables("mytabl")
coldrow=dtable.rows
我用以上代码想实现从data 库中提取前20条数据,但结果是提取里全部的数据,请问如何实现提取前n条数据?