c 23 select mysql

Solutions on MaxInterview for c 23 select mysql by the best coders in the world

showing results for - "c 23 select mysql"
Melody
29 Aug 2016
1DataSet ds = new DataSet();
2using (MySqlConnection con = new MySqlConnection(connectionstr))
3{
4    using (MySqlCommand cmd = con.CreateCommand())
5    {
6        con.Open();
7        cmd.CommandText = "select * from mysql.user;";
8        MySqlDataAdapter adapter = new MySqlDataAdapter(cmd);
9        adapter.Fill(ds);
10    }
11}