-----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, 

i’m really new to ezComponents and i’m going to really like them much better
then the zend-framework…

but in the database components i’m 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

Reply via email to