> I wonder how I can find out about the last inserted id of a row in my
> mysql-database, which I inserted through a ZSQL-Method...
> I tried mysql's built-in function LAST_INSERT_ID(), but that did not solve
> my problem...

It should. Create a DTML method called, say 'select_last_id':

select LAST_INSERT_ID() AS id;

then from dtml:

<dtml-in select_last_id>
This is the last inserted id: <dtml-var id>


"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to