1 Nov 2007 01:05
Database - how to get lastInsertID?
-----Ursprüngliche Nachricht----- Von: Peter Lukezic [mailto:peter.l@...] Gesendet: Donnerstag, 01. November 2007 00:59 An: 'components@...' 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@...(Continue reading)
RSS Feed