R
Richard Black
Hi,
I'm writing a function to create some fairly comlplex SQL
dynamically. I have several optional arguments that will
make up the WHERE clause eg SQLfunction(optional arg1,
optinal arg2, optional arg3,....) - I am trying to find a
way to work out which ones are present and then include
them in the WHERE clause, which will be different
depending on the number of arguments.
I thought it might be possible to use a for each...
statement, similar to for each arguement(?) in
SQLfunction, but I'm uncertain as to the element and
group names to use.
I hope this is clear, and any suggestions at all would be
welcome,
Richard
I'm writing a function to create some fairly comlplex SQL
dynamically. I have several optional arguments that will
make up the WHERE clause eg SQLfunction(optional arg1,
optinal arg2, optional arg3,....) - I am trying to find a
way to work out which ones are present and then include
them in the WHERE clause, which will be different
depending on the number of arguments.
I thought it might be possible to use a for each...
statement, similar to for each arguement(?) in
SQLfunction, but I'm uncertain as to the element and
group names to use.
I hope this is clear, and any suggestions at all would be
welcome,
Richard