3.81.18. AddSessionQueryParam Previous topic Parent topic Child topic Next topic

This optional string array enables the use of SQL bind variables with AddSessionQuery. Set AddSessionQuery using the SQL bind variables or without them. If you use the SQL bind variables, you must specify all query parameters with respective AddSessionQueryParams. Here is an example of using the SQL bind variables:
AddSessionQuery INSERT INTO sessions (roomNumber, guestNumber, macAddress, serviceclass, 
      expiry) VALUES (?, ?, ?, ?, ?)
AddSessionQueryParam %0
AddSessionQueryParam %1
AddSessionQueryParam %2
AddSessionQueryParam %3
AddSessionQueryParam %4
The same query without the SQL bind variables looks this:
AddSessionQuery INSERT INTO sessions (roomNumber, guestNumber, macAddress, serviceclass, 
      expiry) VALUES (%0, %1, %2, %3, %4)
For more information about SQL bind variables, see Section 3.8.1. SQL bind variables.