Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
こんな問い合わせがあります
SELECT * FROM products WHERE status="active" AND product_name LIKE "%sony\'s%"
しかし、製品テーブルに「Sony\'s」という名前の製品がある間は結果が返されません
誰かが持っている場合は、解決策を教えてください。
ありがとう
「%sony\'s%」を次のように置き換えます'%sony''s%'
'%sony''s%'
例えば
SELECT * FROM products WHERE status="active" AND product_name LIKE '%sony''s%'