I have created sequence in database like,
CREATE SEQUENCE seq INCREMENT BY 1;
How can i assign the current value of seq in $t;
<?php
$t=?;
?>
I have created sequence in database like,
CREATE SEQUENCE seq INCREMENT BY 1;
How can i assign the current value of seq in $t;
<?php
$t=?;
?>
Run this query and fetch the result of it:
SELECT seq.CURRVAL FROM dual
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;