-----Ursprüngliche Nachricht----- Von: Peter Lukezic [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 01. November 2007 00:59 An: 'components@lists.ez.no' Betreff: Database - how to get lastInsertID?
Hi, im really new to ezComponents and im going to really like them much better then the zend-framework but in the database components im looking for something to get the id of my last insert statement perhaps someone could help... eg. $q = $this->db->createInsertQuery(); $q->insertInto( '_nic2006' ) ->set( 'id', $q->bindValue( ) ) ->set( 'plz', $q->bindValue( '1010' ) ) ->set( 'ort', $q->bindValue( "wien" ) ); $stmt = $q->prepare(); $stmt->execute(); Best regards, peter lukezic -- Components mailing list Components@lists.ez.no http://lists.ez.no/mailman/listinfo/components