node-adodb
node-adodb copied to clipboard
为什么select top 10 from table 会返回所有的数据
为什么select top 10 from table 会返回所有的数据 我的access 中有1000条数据
query 执行 select top 10 from table
会返回1000条, 有什么方式解决么?
感觉和这个有点类似 https://github.com/nuintun/node-adodb/issues/107
@nuintun
const ADODB = require("node-adodb")
const connection = ADODB.open(`Provider=Microsoft.ACE.OLEDB.12.0;Data Source=${filePath};Jet OLEDB:Database Password=${password};`, true)
connection .query( `SELECT TOP 10, \`column1\` FROM \`table\` ORDER BY \`column1\``)
.then((data) => {
})
node-adodb 只负责中转 sql 和返回结果,出现各种查询问题一般都是 sql 不对,自行排查 sql 语句!
https://blog.51cto.com/lancelot/307180