_Field.PrimaryKey (gb.mysql)
Enregistre l'information pour une clé primaire, plus tard, cette information sera utilisée pour créer une table.
Fields: Est un tableau contenant tous les nomns de champs qui forment la clé primaire.
Quand la table est créée toute l'information de clé primaire 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.PrimaryKey(["city_id"])
Partie de la commande MySQL : PRIMARY KEY(`country_id`)
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.PrimaryKey(["Number", "Code"])
Partie de la commande MySQL : PRIMARY KEY(`Number`, `Code`)