php - postgresql nextval question on sequences -
I am trying to work with PHP in postgresql 'nextval'. How do I fill in brackets in the third line to replace TXN_ID with the next row's value ('schemadb.audit_txn_seq')?
$ DB-> Query ("SELECT nextval ('schemadb.audit_txn_seq')"); $ DB- & gt; Query ('set constraints all defrauded'); $ DB- & gt; Query ('SELECT schemadb.undo_transaction (TXN_ID)');
Thanks!
You did not tell us that $ DB
variable I think you Using PDO
The question is "is the question of beginning" anyway to store the results of the query in PHP variables, and the answer is simply.
SELECT xcolumn FX LIMIT 1 to
If you want to get data values from any query, then you always do the same By standard way:
<Hope that helps.
Comments
Post a Comment