Home  >  Article  >  Backend Development  >  mysql "PAGER set to stdout" 怎么取出数据

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

WBOY
WBOYOriginal
2016-06-06 20:12:532965browse

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

Statement:
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