これは有効なSQLステートメントですか
select title
from table
order by case when title like "%string%" then 0 else 1 end asc
使用するtitle = "string"
と、有効な結果が得られます。%string%を受け入れるようにこれを変更するにはどうすればよいですか?
これは有効なSQLステートメントですか
select title
from table
order by case when title like "%string%" then 0 else 1 end asc
使用するtitle = "string"
と、有効な結果が得られます。%string%を受け入れるようにこれを変更するにはどうすればよいですか?