Einzelnen Beitrag anzeigen

Benutzerbild von Jelly
Jelly

Registriert seit: 11. Apr 2003
Ort: Moestroff (Luxemburg)
3.741 Beiträge
 
Delphi 2007 Professional
 
#11

Re: [MYSQL] Letzte Einträge pro kategorie

  Alt 20. Jun 2007, 21:37
Brrrr.... Ich Depp hab ja auch einfach das group by verduselt:
SQL-Code:
SELECT cat_id, max (image_date) as last_image_date
FROM 4images_images
group by cat_id
gibt dann Folgendes aus:
Code:
1 2 
2 12 
5 6 
6 20
  Mit Zitat antworten Zitat