Home > Database > Mysql Tutorial > body text

嵌套查询-关于mysql的嵌套查寻数据丢失的问题

WBOY
Release: 2016-06-06 09:42:27
Original
1232 people have browsed it

嵌套查询mysql数据库

上周发现在mysql嵌套查询的时候有数据丢失示例如下:
情况1:
select group_concat(p.prod_no separator ',') prod_no
from core_request_prod

情况2:
select * from
(select group_concat(p.prod_no separator ',') prod_no
from core_request_prod) d

情况1可以查出全部的数据(数据很多。。。) 而情况2只能查出部分数据,感觉很多数据被截取或者丢失

mysql版本5.5.37

求解释

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!