I have an explicit cursor that normally looks for a payload value to be = 1 as an input. Occasionally the input will be a 0. This will change the output of the search. But even more occasionally there is a need for both values. The payload field itself is either 1 or 0. I was wondering if there was a wild card character I could put in there instead of 1 or 0 that will tell the cursor to search for both?
rough example
payload = * or maybe % (which is used for the like clause)
Cursor get_stuff(payload_in number field_name_in varchar2)is
Select payload, field_name
From tbl_sm
Where payload = payload_in and field_name = field_name_in;
Background. Payload = 1 is a read message that was stored in the database. Payload = 0 is just an acknowledgement. The acknowledgement has less data in it. Sometimes both are needed. I was wanting to keep from multiple cursors but if I have to I have to. Thanks.
Greg
rough example
payload = * or maybe % (which is used for the like clause)
Cursor get_stuff(payload_in number field_name_in varchar2)is
Select payload, field_name
From tbl_sm
Where payload = payload_in and field_name = field_name_in;
Background. Payload = 1 is a read message that was stored in the database. Payload = 0 is just an acknowledgement. The acknowledgement has less data in it. Sometimes both are needed. I was wanting to keep from multiple cursors but if I have to I have to. Thanks.
Greg