Skip to content

TSQLConnection.GetNextValue

Get next value for a sequence.

Declaration

Source position: sqldb.pp line 316

public 
function TSQLConnection.GetNextValue(const SequenceName: string; 
                                    IncrementBy: Integer=1) : Int64
                                    ;  virtual;

Description

GetNextValue returns the next value for the sequence SequenceName, incrementing the current value with IncrementBy (default 1).

Errors

Not all databases support sequences, in that case an SQL error will be raised.

See also

Name Description
TSQLConnection.GetSequenceNames Return a list of sequence names.