数据库 - SQL:php+mysql支持stacked query(堆叠查询)吗?

WBOY
Release: 2016-06-06 20:44:03
Original
1807 people have browsed it

stacked queries:Executing more than one query in one transaction.
难道一次执行多条sql语句就是堆叠查询吗
看到一篇文章说,php+mysql不支持stacked queries,但是,这样的SQL语句:SELECT * FROM members; DROP members很明显在mysql中是可以执行的。
我哪里理解错了吗?

回复内容:

stacked queries:Executing more than one query in one transaction.
难道一次执行多条sql语句就是堆叠查询吗
看到一篇文章说,php+mysql不支持stacked queries,但是,这样的SQL语句:SELECT * FROM members; DROP members很明显在mysql中是可以执行的。
我哪里理解错了吗?

数据库是肯定支持堆叠查询的,但是让php来执行sql语句就不一定行了。

详情可以参看下这两篇:

  • Stacked Queries
  • 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!