Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,7 +1,8 @@
|
|||
Parameterized SQL statements are an easy way to avoid [[wp:SQL injection|SQL injection]] attacks. SQL drivers and libraries will automatically "sanitize" input to parameterized SQL statements to avoid these catastrophic database attacks.
|
||||
Parameterized SQL statements are an easy way to avoid [[wp:SQL injection|SQL injection]] attacks. SQL drivers and libraries will automatically "sanitize" input to parameterized SQL statements to avoid these catastrophic database attacks. Second, parameterized SQL performs better. A lot better.
|
||||
|
||||
Using a SQL update statement like this one (spacing is optional):
|
||||
<lang sql>UPDATE players
|
||||
SET name = 'Smith, Steve', score = 42, active = true
|
||||
WHERE jerseyNum = 99</lang>
|
||||
show how to make a parameterized SQL statement, set the parameters to the values given above, and execute the statement.
|
||||
WHERE jerseyNum = 99</lang>show how to make a parameterized SQL statement, set the parameters to the values given above, and execute the statement.
|
||||
|
||||
<blockquote cite="http://blog.codinghorror.com/give-me-parameterized-sql-or-give-me-death/">Non-parameterized SQL is the GoTo statement of database programming. Don't do it, and make sure your coworkers don't either.</blockquote>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue