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

Борисов, Дмитрий / Dmitriy Borisov bordmi at rarus.ru
Tue Apr 7 00:10:34 MSD 2015


local var_a
dbh:query("SELECT uuid FROM fifo_intercept ORDER BY time_id DESC LIMIT 1",
   function(u)
      var_a = u.uuid
   end)


2015-04-06 22:56 GMT+03:00 Paul Atreides <paul.atreides83 at googlemail.com>:

> 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?
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
with best regards,
Dmitriy Borisov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150406/6eda7860/attachment.html 


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