MySQL .NET With C# - Lesson 03: Introduction to SQL and ADO.NET: "MySqlCommand"
private void cmdLoad_Click(object sender, System.EventArgs e)
{
MySqlConnection conDatabase = new
MySqlConnection("Data Source=localhost;Persist Security Info=yes;");
MySqlCommand cmdDatabase = new MySqlCommand(SQL Code, conDatabase);
conDatabase.Open();
cmdDatabase.ExecuteNonQuery();
conDatabase.Close();
}
www.visli.com
No comments:
Post a Comment