Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Special characters in sql

Ryansun-OracleDec 21 2015 — edited Dec 21 2015

Hi,

   I had a question regarding escaping special characters in Oracle. Lets say I have a table column which has data like '%_TEST%'. I deally if we do a select on this table, it would be something like

  

   Select * from table where column like '%\_TEST%' escape '\'

  

   However, when I run this query on sql developer

  

   Select * from table where column like '%TEST%' , it returns the same result. (without escaping the special character _.

  

   Wondering, if this is because sqldeveloper by default escapes the special character? or do we need to still write the escape as a good practice?

  

  

   Thanks!

   Ryan

This post has been answered by Chris Hunt on Dec 21 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2016
Added on Dec 21 2015
5 comments
1,262 views