我有这个问题:
SELECT `beacons`.*, `blocks`.`ID` AS `blockID` FROM (`beacons`) LEFT JOIN `blocks` ON `blocks`.`StoreID` = `beacons`.`Major` WHERE `beacons`.`Major` = '2' ORDER BY `beacons`.`Minor` desc
当我这样做时,我会从表beacons
我想要的是 - 一行有一个块数组ID: One row with an array of blocks ID - to save time and resources by reptitive results table. http://oi59.tinypic.com/aue1ea.jpg