</pre>
====データ取得(SELECT)====
----
<pre>
using MySql.Data.MySqlClient;
}
}
</pre>
====データ取得(カーソル)====
----
<pre>
using (var conn = new MySqlConnection(GetConnStr(host, database, user, password)))
{
conn.Open();
var command = new MySqlCommand("select * from jra_data", conn);
using(var reader = command.ExecuteReader())
{
while(reader.Read())
{
Debug.WriteLine(reader.GetString("data"));
}
}
}
</pre>