I have created sequence in datab开发者_运维技巧ase like,
CREATE SEQUENCE seq INCREMENT BY 1;
How can i assign the current value of seq in $t;
<?php
$t=?;
?>
If you want the next value from the sequence you would run the sql statement below and fetch back the results of the myseq column.
select seq.nextval myseq
from dual;
Run this query and fetch the result of it:
SELECT seq.CURRVAL FROM dual
精彩评论