Marakima
Messages postés36Date d'inscriptionjeudi 2 octobre 2008StatutMembreDernière intervention26 septembre 2009
-
6 mai 2008 à 01:16
didel84
Messages postés2Date d'inscriptionmardi 6 mai 2008StatutMembreDernière intervention 6 mai 2008
-
6 mai 2008 à 19:55
Bonsoir tous le monde ,
Je suis débutante en C#,
alors je réalise une application en C# et MySql,
j'ai effectuer la requette de selection dont voiçi le code : (j'ai utiliser using MySql.Data.MySqlClient)
---------------------------------------------------------------
private void button1_Click(object sender, System.EventArgs e)
{
string MyConString = "SERVER=localhost;" + "DATABASE=mydatabase;" + "UID=testuser;" +"PASSWORD=testpassword;";
MySqlConnection connection = new MySqlConnection(MyConString);
MySqlCommand command = connection.CreateCommand();
MySqlDataReader Reader;
command.CommandText = "select * from mycustomers";
connection.Open();