[Freeswitch-users] dbh:query - insert id

Lloyd Aloysius lloyd.aloysius at gmail.com
Sat May 25 04:14:01 MSD 2013


Hello All

How to get the id value after insert a record a record using dbh:query

*table_a - columns*.

id - auto increment
field1
field2


dbh:query("insert into table_a ( field1,field2) values ('11','Test')")


After insert how to get the table_a - id value for the inserted record?

Thanks
Lloyd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130524/ff17fdd7/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list