0
我需要爲同一個表添加兩次 - 年齡,所以我可以按一個字段的年齡排序,它是怎麼來的?mysql錯誤:#1052 - from子句中的列'id'含糊不清
mysql error: #1052 - Column 'id' in from clause is ambiguous
select * from `students` `s` JOIN `age` `a` on `s`.`SN`=`a`.`SN` JOIN (SELECT `s`.`id` FROM `students` `s` JOIN `age` `a` on `s`.`SN`=`a`.`SN` WHERE 1 order by `a`.`age` asc limit 0,2) p using(id) order by `a`.`age` asc