Skip to content

Instantly share code, notes, and snippets.

@markoo
Created April 11, 2014 12:51
Show Gist options
  • Save markoo/10466106 to your computer and use it in GitHub Desktop.
Save markoo/10466106 to your computer and use it in GitHub Desktop.
MySql thing ot get data from
try
{
conn.Open();
MySqlCommand cmd = new MySqlCommand("Select * from League", conn);
MySqlDataAdapter adp = new MySqlDataAdapter(cmd);
DataSet ds = new DataSet();
adp.Fill(ds);
return ds.Tables[0].Select().ToString();
}
catch (MySqlException ex)
{
}
finally
{
conn.Close();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment