Mysql
 sql >> Database >  >> RDS >> Mysql

MySqlCommand().ExecuteReader().GetString() non funziona

Ti manca un reader.Read() chiama:

 MySqlDataReader reader = cmd.ExecuteReader();
 while(reader.Read())
 {
     String res = reader.GetString(0); 
     //...
 }