次のようなwhere句を使用してSQLステートメントを実行しようとしています
string s2 = "Select * from idtyfile where oysterid=" + id ;
SqlCommand da2 = new SqlCommand(s2, con); or
SqlAdapter da2 = new SqlAdapter(s2, con);
実行しようとすると、これらの両方が失敗します
da2.ExecuteReader();
IDのデータは次のようになります
ID
43PCOU5T
ZP6RAEJ0
何らかの理由で、これらのクエリの両方がこれらの種類のデータで失敗しています。