I am writing SQL queries using Node JS. After the query is formed I will call the database to get the data.
My query is something like below,
and technology in (values) and subTechnology in (values) and geo in (values) and so on.
now the values may be ('a') or ('b', 'c', 'a') in this way. It will come dynamically.
Now I want to delete the portion and technology in (values). I can use str.replace() method. But, for the values portion then I have to hard code it. That I don't want. And values also comes dynamically. Is there a shortcut approach to achieve this ? I don't want to use for loop or something like that.
via Anijit
No comments:
Post a Comment