I have started to work with SQL adapters in Worklight, but I do not understand how can I pass values to an IN condition when invoking my adapter procedure.
相关问题
- Is there a limit to how many levels you can nest i
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- How to toggle on Order in ReactJS
- Difference between Types.INTEGER and Types.NULL in
You will need to edit your question with your adapter's XML as well as implementation JavaScript... Also, make sure to read the SQL adapters training module.
What you need to do is have your function get the values:
And your SQL query will use them, like so (just as an example how to pass variables to any SQL query, doesn't matter if it contains an IN condition or not):
Note the quotation marks for value1 (for text) and lack of for value2 (for numbers).