我剛開始的最後一行時,我不喜歡它下面C#的MySQL得到所有行
我怎樣才能得到
baglanti.Open();
MySqlCommand cmd = new MySqlCommand("select * from lisans", baglanti);
int Count = Convert.ToInt32(cmd.ExecuteScalar());
if (Count != 0)
{
MySqlDataReader oku = cmd.ExecuteReader();
while (oku.Read())
{
textBox1.Text= oku.GetString("mac");
}
您是否有證據表明StringBuilder更好? – Steve
請參閱http://stackoverflow.com/questions/10076454/string-builder-vs-lists和https://blog.goyello.com/2013/01/07/8-most-common-mistakes-c-開發商,化妝/ –