-
Notifications
You must be signed in to change notification settings - Fork 138
set and reuse variables locally in sqlpage #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That would indeed be nice ! But this will require support from |
In your particular example, is there a reason you cannot use select [id] , [invoice_no], [invoice_date], [cust_no]
from SALES_HISTORY
where invoice_no = isnull($invoice_no, func_getMaxInv()) ? |
Yes, I can do that as workaround in this particular case. In amore generic way I still would love to be able to use local variables so there is no need to call a function many times. |
Let's keep that open to keep track of the feature. It's something I'd like to see in SQLPage too |
This allows for new interesting use cases, using variable values as inputs to sqlpage functions. |
Would it be possible to add support to declaring local SQL variables and setting their value ?
something along these lines:
This snippet should either show the invoice passed in the parameter or the last one.
The text was updated successfully, but these errors were encountered: