We have a search form where the user is prompted for various fields to search on. One field is a VARCHAR, the other NUMERIC. If the fields are left blank, I want to match the ALL data.
For the VARCHAR, We simply append '%' top the end of whatever they enter, and use a 'LIKES' in the WHERE phrase. How would I handle that for a NUMERIC field? If blank, match all, If value, do exact match.
Oracle
8.1
- Mike
For the VARCHAR, We simply append '%' top the end of whatever they enter, and use a 'LIKES' in the WHERE phrase. How would I handle that for a NUMERIC field? If blank, match all, If value, do exact match.
Oracle
8.1
- Mike