While we write a web application, we will use SQL prepare instead of concat SQL strings to avoid SQL injection. For example:
sql.exec("select * from user where user_id=?", user_id)
But how to write prepare WHERE...IN
in SQL? For example:
sql.exec("select * from user where user_id in ?", user_ids)
If it is impossible. What is the proper way to avoid SQL injection in such a situation?
Thanks.