Sign in Join
FPDoc Onlineexperiment

TSQLConnection.GetNextValue function

Member of TSQLConnectionpublicIn unit SQLDB

Get next value for a sequence.

Declaration

pascal
function GetNextValue(const SequenceName: string; 
 IncrementBy: Integer=1): Int64; virtual

Arguments

SequenceName

Sequence name for which to return the next value.

IncrementBy

Amount to increment the current value of the sequence with.

Function result

The current value of the sequence, incremented by IncrementBy.

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.