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.
「Apple's」のような文字列値があります。以下のクエリのように、この文字列を SQL の "IN" 句で使用したい
select * from tbl_fruit where nm_fruit IN(''Apple's'','Orange');
上記のクエリを正しく動作させるにはどうすればよいですか?
どうもありがとう、Awais Afzal。
一重引用符を 2 つ、
select * from tbl_fruit where nm_fruit IN ('Apple''s', 'Orange')
ただし、アプリケーション レベルで行う場合は、クエリをパラメーター化したことを確認してください。:)
:)