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!

Thesaurus/Synonym

scottjhnMay 2 2012 — edited May 3 2012
In a SELECT ... from ... WHERE col1 = f(a1) ...

There, col1, say, is 'test1'; the a1 could be test1, test-1, test_1, or test 1, depending on the runtime entry. The function f(a1) will check if it is the stored values, if it is one of them, it will deem it a synonym, therefore return the value "test1"; otherwise, return some other value.

I intend to use the CTX_THES Package so that first use ctx_thes.create_phrase to create the synonyms, then use ctx_thes.syn to find the match.

I am not sure if this is the right way to do it? Or are there other ways to do it?

Finally, if I place all the processing logic in a JAVA program, then access the Java code via the function f(a1) as above, will the java layer slow down the SQL?


Scott
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2012
Added on May 2 2012
2 comments
84 views