[Freeswitch-users] freeswitch.dbh / dbh:query

Paul Atreides paul.atreides83 at googlemail.com
Tue Apr 7 00:07:42 MSD 2015


dbh:query(string.format("SELECT uuid FROM fifo_intercept ORDER BY time_id
DESC LIMIT 1"), function(row)
 fifo_uuid = row.uuid;
end);

Found it myself :)

On Mon, Apr 6, 2015 at 9:56 PM, Paul Atreides <
paul.atreides83 at googlemail.com> wrote:

> Hi,
>
> I am sorry I don't get it :/
> How do I pull of a single value from this query:
>
> "SELECT uuid FROM fifo_intercept ORDER BY time_id DESC LIMIT 1"
>
> How can I save the result into the variable fifo_uuid with dbh:query?
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150406/4592b444/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list