1、防止SQL注入 sql注入举例 selec * from user_table where user='user' and password='123' or 1='1' 如果在密码行写 123' or 1='1 会透过检查直接进入