1
MySqlCommand status =
new MySqlCommand("select name_ru from request_status where id = '50'", conn);
MySqlDataReader dr_status = status.ExecuteReader();
dr_status.Read();
MySqlCommand cmd = new MySqlCommand(query, conn);
dt.Load(cmd.ExecuteReader());
MySqlDataReader dr = cmd.ExecuteReader();
MySqlDataReader must be closed first
請幫助...
你爲什麼要這麼多次調用ExecuteReader?在使用另一個閱讀器之前,您必須關閉一個開放閱讀器 – 2012-07-12 09:56:47
爲什麼要執行兩次讀取器? – 2012-07-12 09:56:48