In my web application, I want to retrieve data from database based on the value that is passed to the function. I wrote the query as follows.
Try the following:
You don't have access to javascript variable names in SQL, you must pass the values to the Database.