I want to insert multiple values into a table from a SQL query in Anorm. In the following snippet, is there a way to bind a list of usernames as values instead of just one username?
SQL("insert into users (username) " +
"values ({username})").on(
'username -> username,
).executeUpdate()
As an alternative, I can create a concatenated string from my inputs, but that's prone to SQL injection and isn't quite as clean.