_Table.Modify (gb.mysql)
Sub Modify ( Table As String [ , Database As String, Engine As String, Charset As String ] )
Change la définition des colonnes à partir d'une table.
Table: Est la table à utiliser.
Action: Est l'action à exécuter. L'une des suivantes : DROP, ADD, MODIFY, CHANGE.
Symbol: Est la colonne visée.
Definition: Est la nouvelle définition de champ.
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.Table.Modify("actor", "MODIFY", "first_name", "SMALLINT UNSIGNED")
Commande MySQL : ALTER TABLE `actor` MODIFY `first_name` SMALLINT UNSIGNED