Skip to content

検索:カンマ区切りのフィールド

カンマ区切りの文字列のフィールドから対象の行を取得する。

select id from {table_name}
where
find_in_set('{target}', {field_name})

DANGER

MySQLの固有の関数のため、その他のデータベースでは使用できない。