次の値を持つテーブルがあります
docid dcname doctitle
1 **aa **aaa01-01
2 aa** aafddg-02**
3 a**a asds***90-05
4 abcd abcd-06.
このテーブルで、** で始まり ** で終わる「Doctitles」の値をフィルタリングしたいと思います
私の結果は
dcid docname doctitle
3 a**a asds***90-05
4 abcd abcd-06
私は以下のクエリを使用していますが、得られた結果は真ん中に ** があるDoctitlesだけです
SELECT *
FROM table1
WHERE doctitle NOT LIKE '**%'
AND doctitle NOT LIKE '%**'
AND doctitle LIKE '%**%'
これにより、以下の結果のみが得られます dcid docname doctitle 3 a* a asds **90-05
これについて助けが必要です。