私のコード:
SqlCommand command = new SqlCommand("SELECT min(Score) FROM MenAthletics WHERE [(@sportevent)] < (@result);", connect);
command.Parameters.AddWithValue("@sportevent", sportEvent);
command.Parameters.AddWithValue("@result", result);
@result は正常に動作します (double 変数のみ) @sportevent は動作しません (エラー: 列名が無効です) (sportEvent は文字列です)
文字列を指定して列を選択するにはどうすればよいですか?