in reply to Re^2: Dynamic SQL
in thread Dynamic SQL
Did you notice that my version has two separate statement handles that are being executed? You can do the same thing with yours. Prepared statements with placeholders will likely be faster than constructing queries on the fly and executing them, and certainly much safer.
How many possible queries can you need to construct that you can't afford to use prepared statements and placeholders?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Dynamic SQL
by erix (Prior) on Apr 06, 2015 at 16:02 UTC | |
by tye (Sage) on Apr 07, 2015 at 03:47 UTC | |
by bitingduck (Deacon) on Apr 06, 2015 at 17:16 UTC | |
by erix (Prior) on Apr 06, 2015 at 17:21 UTC | |
by Laurent_R (Canon) on Apr 06, 2015 at 17:47 UTC |