先週試験を受け、練習の1つが「ラストネームに少なくとも2つの連続するボーカルを持つ生徒のすべてのデータを取得する」でした。私は、次の操作を実行しようとしているSQL上で連続したボーカルをクエリ
:
select
apellidos
from
alumnos
where
apellidos LIKE '[%aeiou%]'
私はまた、ORの多いクエリを試してみました。
select
apellidos
from
alumnos
where
apellidos LIKE '[%ae%]'
OR apellidos LIKE '[%ai%]'
OR apellidos LIKE '[%ao%]'
OR apellidos LIKE '[%au%]'
OR apellidos LIKE '[%ei%]'
OR apellidos LIKE '[%eo%]'
OR apellidos LIKE '[%eu%]'
OR apellidos LIKE '[%io%]'
OR apellidos LIKE '[%iu%]'
OR apellidos LIKE '[%ou%]'
この作品はありません。あなたがlike
とのマッチングあなたのパターンを練習してください
where apellidos LIKE '%[aeiou][aeiou]%'
:「ボーカル」と仮定すると、
いくつかのデータの例を掲載できますか? – Raptor