|
|||||||||||
|
Get ID when inserting with Template Queries
From: Martin Dommermuth <mdommermuth(at)tssg.org>
Date: Mon Sep 03 2007 - 04:40:27 EDT
I suppose this is somewhere in the docs, but I can't find a sane way to search for it. So please s.o. hit me with a cluestick:
I have this code:
ubisenseTemplate = "insert into ubisense values "; ubisenseTemplate.append("(%0, %1, %2, %3, %4, %5q, %6q)"); Column one of readout is AUTO_INCREMENT and ubisense has a FOREIGN KEY (idreadout) REFERENCES readout(id). How can I get the ID the new row will have? Should I use SSQLS instead? Thanks, Martin -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=lists@pantek.comReceived on Mon Sep 3 04:42:34 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:03:08 EDT |
||||||||||
|
|||||||||||