防止SQL注入 [英] Protect against SQL injection

查看:111
本文介绍了防止SQL注入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何防止SQL注入?

推荐答案

使用预准备语句和参数化查询。这些是由数据库服务器与任何参数分开发送和解析的SQL语句。



Sql Injection

更多信息
Use prepared statements and parameterized queries. These are SQL statements that are sent to and parsed by the database server separately from any parameters.

Sql Injection
Some more info


我同意Jas24 这个答案 [ ^ ]。而你的问题让我想起了这篇CP文章。 安全:它变得更加糟糕 [ ^ ]



回答你的问题

提示/技巧:防范SQL注入攻击 [ ^ ]
I agree with Jas24's comment to this answer[^]. And your question reminds me of this CP article. Security: It’s Getting Worse[^]

Answer for your question
Tip/Trick: Guard Against SQL Injection Attacks[^]


这篇关于防止SQL注入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆