Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

c# select Mysql

DataSet ds = new DataSet();
using (MySqlConnection con = new MySqlConnection(connectionstr))
{
    using (MySqlCommand cmd = con.CreateCommand())
    {
        con.Open();
        cmd.CommandText = "select * from mysql.user;";
        MySqlDataAdapter adapter = new MySqlDataAdapter(cmd);
        adapter.Fill(ds);
    }
}
 
PREVIOUS NEXT
Tagged: #select #Mysql
ADD COMMENT
Topic
Name
1+4 =