wp_nextval db seq
Returns the next value of a sequence.
Source code:
return [database_to_tcl_string $db "select $seq.nextval from dual"]