_TableIndexes.Add (gb.db2)

Sub Add ( Name As String, Fields As String[] [ , Unique As Boolean ] )

Adds a new index to an existing table.

  • Name is the name of the index.

  • Fields is a comma-separated list of the name of the fields that will make up the index.

  • Unique indicates if this index will be unique. By default, the index is not unique.