Q: is it my possible to make my query to change from “select ‘what is my name’ from dual” to “select ‘you’r Geek DBA’ from dual” during execution.
A: this feature is called “query equivalence”.
query equivalence is declared using the dbms_advanced_rewrite.declare_rewrite_equivalence procedure, and uses the syntax:
dbms_advanced_rewrite.declare_rewrite_equivalence(declaration_name,source_statement,target_statement);
Follow Me!!!