注意:这个问题与如何使用sqlx在切片中查询mysql相似但不是重复的问题。我问的是关于Rust版本的。
这就是我想要做的事情。
let v = vec![..];
sqlx::query("SELECT something FROM table WHERE column IN (?)").bind(v)
...
然后我遇到了以下错误
the trait bound `std::vec::Vec<u64>: sqlx::Encode<'_, _>` is not satisfied