Home > Backend Development > PHP Tutorial > 问几个关于MYSQL的like语句里插入PDO占位符的有关问题

问几个关于MYSQL的like语句里插入PDO占位符的有关问题

WBOY
Release: 2016-06-13 13:02:48
Original
1097 people have browsed it

问几个关于MYSQL的like语句里插入PDO占位符的问题
第一个是,查询某个字符串都是用like '%somestring%'这种方式来查吗?有没有什么优化的手段或者措施,比如像binary filed like '%x%'这样..
第二个是,like语句相关的查询有没有什么SQL注入漏洞?因为对这方面了解的少.

然后最后就是想了解下其它的要注意的地方~谢谢了~

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template