i do not want to delete and reinsert every row, so I have used the following to try to use multiple rows with anorm:
SQL("""
delete from PERSON_ROLES
WHERE person_id = {userId}
and role_id not in ({rolescommastring})
)
""").on('userId -> userId,
'rolescommastring -> rolescommastring).execute()
The above yields a string that it doesn't like and i get :
c.j.b.PreparedStatementHandle - delete from PERSON_ROLES WHERE person_id = 1460 and role_id not in ( '1, 3, 8, 9' )
can i create dynamic sql with anorm?