Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想根据我的用户传入的一些字符串自动构建一个 SQL 查询。Cloud Spanner API 中是否有任何辅助方法可以做到这一点?
我们强烈建议您不要根据不受信任的用户输入生成文本 SQL。使用绑定参数更容易、更安全,可以帮助您避免 SQL 注入攻击。