Created
April 11, 2014 12:51
-
-
Save markoo/10466106 to your computer and use it in GitHub Desktop.
MySql thing ot get data from
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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