私はテーブルを持っています
studentId Classes
1 Auto CAD,Electronics
2 Instrumentation,Chemical,IT,English
3 Computer,Math,Hindi
4 Physics,Accountancy
5 Bengali,Geography
今、単一の文字列「Instrumentation、Geography、Physics」を使用して検索したい
次のように表示されます
studentId Classes
2 Instrumentation,Chemical,IT,English
4 Physics,Accountancy
5 Bengali,Geography
Studentid 2 には Instrumentation が含まれ、studentid 4 には Physics が含まれ、studentid 5 には Geography が含まれているためです。
SELECT
ステートメントを使用してそれを行うにはどうすればよいですか? 「%Instrumentation%」や「%Geography%」などのクラス、または「%Physics%」などのクラスは好きではありません。単一の変数を使用して「Instrumentation、Geography、Physics」を文字列にするか、コンマで区切られた文字列の任意の組み合わせを使用したいからです。