开发者

how to include "order by" in Pear MDB2 autoexecute select statments

开发者 https://www.devze.com 2023-03-31 09:30 出处:网络
I\'m using Pear MDB2\'s \"Extended\" module to have it automatically generate and execute SQL select statements.The help document is here:

I'm using Pear MDB2's "Extended" module to have it automatically generate and execute SQL select statements. The help document is here:

http://pear.php.net/manual/en/package.database.mdb2.intro-auto.php

I want to get the results back from the DB in a certain order. I know, I co开发者_C百科uld have my PHP program do the sorting after the results are fetched, but it turns out to be much faster if the DB sorts it.

I can't find a way in the API to tell it to use "order by" and by which columns. Is there a way to make MDB2 do this?


No, the MDB2 extended module does not support ordering for autoprepared/executed queries.

0

精彩评论

暂无评论...
验证码 换一张
取 消