_Field.Index (gb.mysql)

Sub Index ( Index As String, Field As String )

Enregistre l'information pour un index, plus tard, cette information sera utilisée pour créer une table.

Index: Est le nom de l'index.
Field: Est le champ à référencer.

Quand la table est créée toute l'information de l'index est effacée.

Exemples

Dim hCon As New Connection

With hCon
  .Type = "mysql"
  .Port = "3306"
  .Host = "localhost"
  .User = "root"
  .Password = "mypass"
  .Name = "Gambas"
  .Open()
End With

hCon.MySQL.Field.Index("idx_fk_country_id", "country_id")