Pages

OracleEBSpro is purely for knowledge sharing and learning purpose, with the main focus on Oracle E-Business Suite Product and other related Oracle Technologies.

I'm NOT responsible for any damages in whatever form caused by the usage of the content of this blog.

I share my Oracle knowledge through this blog. All my posts in this blog are based on my experience, reading oracle websites, books, forums and other blogs. I invite people to read and suggest ways to improve this blog.


Thursday, August 18, 2016

Escape character in sql queries

Escape character in sql queries
                                                 

Summary 
Like all scripting languages so and oracle sql has its escape character. If you execute in E-Business Suite
select * from all_tables where table_name like 'AP_%';
The results will not be all tables starting with AP_* as might be expected but all table starting with AP* 

Now put the escape character at your statement to get exactly what you want.
select * from all_tables where table_name like 'AP<_%' ESCAPE '<';

select * from all_tables where table_name like 'AP_%'; --without Escape character you will get table_name like APPLY$% also.

No comments:

Post a Comment