Skip To Content

ListDatabaseSequences

Resumen

Lists the database sequences in a database.

Nota:

At ArcGIS Pro 2.4, this function is only supported for file geodatabases.

Sintaxis

ListDatabaseSequences (workspace)
ParámetroExplicaciónTipo de datos
workspace

A database that has one or more sequences.

String
Valor de retorno
Tipo de datosExplicación
Object

A list of DatabaseSequence objects. Each object contains properties of the database sequence.

Muestra de código

ListDatabaseSequences example

List and describe the database sequences in a file geodatabase.

import arcpy

sequences = arcpy.da.ListDatabaseSequences("C:/Data/myGdb.gdb")

for seq in sequences:
    print('Sequence name: {}'.format(seq.name))
    print('Sequence start value: {}'.format(seq.startValue))
    print('Sequence increment value: {}'.format(seq.incrementValue))
    print('Sequence current value: {}'.format(seq.currentValue))

Temas relacionados