What is dynamic SQL?

后端 未结 9 2274
暗喜
暗喜 2020-12-05 02:28

I just asked an SQL related question, and the first answer was: \"This is a situation where dynamic SQL is the way to go.\"

As I had never heard of

9条回答
  •  旧时难觅i
    2020-12-05 02:43

    Rowland is correct, and as an addendum, unless you're properly using parameters (versus just concatonating parameter values inline from provided text, etc.) it can also be a security risk. It's also a bear to debug, etc.

    Lastly, whenever you use dynamic SQL unwisely, things are unleashed and children are eaten.

提交回复
热议问题