Heim  >  Artikel  >  Backend-Entwicklung  >  mysql "PAGER set to stdout" 怎么取出数据

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

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

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn