laravel - How to retrieve N pieces of data with associated field values ​​A/B/C from a table using one SQL statement?
phpcn_u1582
phpcn_u1582 2017-05-16 16:47:32
0
1
342

How to retrieve N pieces of data with associated field values ​​A/B/C from a table using one SQL statement?

phpcn_u1582
phpcn_u1582

reply all(1)
世界只因有你

Ask and answer your own questions

SELECT * FROM s_area AS a
WHERE area_parent_id in (3,4,5) and 5 > ( SELECT COUNT(*) FROM s_area WHERE area_parent_id = a.area_parent_id AND area_id>a.area_id) 
order by area_sort asc
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template