[SR-Users] How to use LIMIT 1 in db_query api

Krishna Kurapati kkurapat at gmail.com
Sat Dec 8 18:53:21 CET 2012


Hi,

I need a way to limit the results to just one row. The only way I know I
could do is to call db_query followed by fetch_result of 1 row. However
this is not optimal as all the rows are fetched to dynamic memory with
db_query.

Is there an alternative approach?

Thanks

Krish Kura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121208/9642c9e5/attachment.htm>


More information about the sr-users mailing list