Mysql-此查询是什么意思? [英] Mysql-What does this query mean?
本文介绍了Mysql-此查询是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试理解一些查询
I'm trying to understand some queries
其中之一是
(select (@a)
from (select(@a:=0x00)
,(select (@a)
from (information_schema.schemata)
where (@a) in (@a:=concat(@a,schema_name,'<br>'))
)
) a
)
请给我解释一下吗?
推荐答案
无需过多解释,这是对会话变量的严重滥用.看起来 试图以相同的方式获取数据库名称的串联列表,而GROUP_CONCAT
的分隔符为<br>
;但它看起来非常不可靠.
Not much to explain, it is a horrendous abuse of session variables. It looks like it is trying to get a concatenated list of database names, in the same manner GROUP_CONCAT
would with a delimiter of <br>
; but it looks very unreliable.
这篇关于Mysql-此查询是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文