MySqlScript script = new MySqlScript(); script.Connection = mySqlConnection1; script.Delimiter = "&&"; script.ScriptText = @" CREATE PROCEDURE procedure1 (OUT c INT) BEGIN select count(*) from Dept into c; END&& DELIMITER ; INSERT INTO Dept VALUES (100, 'New dept', 'New York'); "; script.Execute();
Dim script As New MySqlScript() script.Connection = mySqlConnection1 script.Delimiter = "&&" script.ScriptText = _ "CREATE PROCEDURE procedure1 (OUT c INT) " & vbCrLf & _ " BEGIN" & vbCrLf & _ " select count(*) from Dept into c;" & vbCrLf & _ " END&& & _" & vbCrLf & _ "DELIMITER ; & _" & vbCrLf & _ "INSERT INTO Dept VALUES (100, 'New dept', 'New York'); " script.Execute()
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2