📜  如何在 C# 中获取表 mysql 中的所有值 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:09.299000             🧑  作者: Mango

代码示例1
this.data_reader = command.ExecuteReader();
        if (this.data_reader.HasRows) {
            this.count = data_reader.FieldCount;
            while (this.data_reader.Read());           
            {
                for (var i = 0; i < count; i++)
                {
                    Debug.WriteLine(this.data_reader.GetValue(i));
                }
            }
           this.data_reader.Close();
        }