我从 3 个不同的表中选择一些值,例如,
$result=mysql_query("select a.party_name, a.app_date, a.receive_date, a.case_type, c.order_date from party_details a, case_decision b, assign_advocate c where MONTHNAME(b.date)='$month' and YEAR(b.date)='$year' and a.partyid=b.party_id and a.partyid=c.party_id and c.status='1'");
但我只想从底部选择 1 个值,或者按表 c 的降序排列(case_decision)。
我怎样才能做到这一点。请告诉我。谢谢..