_View.Delete (gb.mysql)

Sub Delete ( Views As String[] [ , IfExists As Boolean ] )

Drops one or more views.

View: Is an array containing the views names.
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.View.Delete(["view_actor"], True)

MySQL statement: DROP VIEW IF EXISTS `view_actor`