_View.Modify (gb.mysql)

Sub Modify ( View As String, Statement As String )

Modifies the given View.

View: Is the view name.
Statement: Is the query to modify the view.

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.Modify("view_actor", "SELECT first_name, last_name FROM actor")

MySQL statement: CREATE OR REPLACE VIEW `view_actor` AS SELECT first_name, last_name FROM actor