Mairbek Khadikov
Mairbek Khadikov

Reputation: 8089

Programmatically building SQL query

I’d like to automatically build up a SQL query based on some strings passed in by my users. Are there any helper methods for doing that in the Cloud Spanner APIs?

Upvotes: 0

Views: 154

Answers (1)

Mairbek Khadikov
Mairbek Khadikov

Reputation: 8089

We strongly recommend that you not generate textual SQL based on untrusted user input. It’s much easier and safer to use bound parameters, which help you avoid SQL injection attacks.

Upvotes: 1

Related Questions