0

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?

Maxim
  • 4,075
  • 1
  • 14
  • 23
Mairbek Khadikov
  • 7,939
  • 3
  • 35
  • 51

1 Answers1

1

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.

Mairbek Khadikov
  • 7,939
  • 3
  • 35
  • 51