Db\Adapter\Pdo\Postgresql::getDefaultIdValue

public getDefaultIdValue ()

Returns the default identity value to be inserted in an identity column

//Inserting a new robot with a valid default value for the column 'id'
 $success = $connection->insert(
     "robots",
     array($connection->getDefaultIdValue(), "Astro Boy", 1952),
     array("id", "name", "year")
 );
doc_Phalcon
2016-10-16 09:49:12
Comments
Leave a Comment

Please login to continue.