数値の SQL 行を複数のテキスト ボックスに読み込もうとしています。基本的に、行には「;」で区切られた数字が含まれます。「;」で区切られたときに各番号を取得するにはどうすればよいですか 独自のテキストボックスにありますか?
SqlConnection conn = new SqlConnection("Data Source=LAURA-PC;Initial Catalog=Sudoku;Integrated Security=True");
conn.Open();
SqlCommand command = conn.CreateCommand();
command.CommandText = "Select puzzle from Puzzle";
command.CommandType = CommandType.Text;
SqlDataReader reader = command.ExecuteReader();
if (reader.Read())
{
textBox1.Text = reader.GetValue(0).ToString();
textBox2?
textbox3?
}
conn.Close();