Re: Simple Stored Function not working
When local variable (including compound statement parameter) name and column name interferes then the variable name is always preferred. Hence your
WHERE businessGroup = businessGroup
compares 2 copies of input variable - i.e. checks that the parameter value provided is not NULL.
You must specify table alias (which is impossible for a variable) for one of the names to be treated as column name:
WHERE vat.businessGroup = businessGroup
Subject
Views
Written By
Posted
1161
January 01, 2022 06:19AM
505
January 01, 2022 06:55AM
Re: Simple Stored Function not working
478
January 01, 2022 07:43AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.