on 2023 Jan 26 12:07 PM
Hi,
I'm using the following where condition in a fixed sql query:
and ([NC_DATA].WORK_CENTER_BO LIKE '%[Param.4]%' OR '[Param.4]' IS NULL)
and its working fine when I enter a value for Param.4, but when I don't use Param.4 it's not giving the NULL paramter only data with values. How can I achieve that I get data with values and also data = NULL
Thanks for helping.
Request clarification before answering.
Perhaps you need to always have a dummy Param.4 value when you don't have a value to insert. If you do not apply a value to Param.4, then your Like '%%' will return values since all the WORK_CENTER_BO meet that criteria. If you do not want the values returned, then use something like '----' as the default value of Param.4.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.