var sql1 = `select title from magnet where match(title,files) against("${ key }" in natural language mode) limit ${ start },${ count };`
var sql2 = `select count(title) from magnet where match(title,files) against("${ key }" in natural language mode);`
回复 (1)
O
限制条件不一样啊。。。如果非要合并也只能 union 吧,不过这样更损耗性能了。
参与回复
登录后即可参与回复。登录