Db\Adapter\Pdo\Postgresql::getDefaultIdValue

public getDefaultIdValue ()

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

1
2
3
4
5
6
//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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.