PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

postgresql nextval domanda sulle sequenze

Prova:

$DB->query("SELECT nextval('schemadb.audit_txn_seq')");
$DB->query('SET CONSTRAINTS ALL DEFERRED');
$DB->query("SELECT schemadb.undo_transaction( currval('schemadb.audit_txn_seq') )");