Home > comp > gb.db.mysql > _table > delete 
  [3.0]
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
Delete
Drops one or more tables.

Tables: Is an array containing all the tables names to be dropped.
IfExists: Accepts True or False, if True is given, then "IF EXISTS" is added to the statement.

Examples

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.Delete(["Gambas1", "Gambas2"], True)

MySQL statement: DROP TABLE IF EXISTS `Gambas1`, `Gambas2`