2009-03-26 4 views

Antwort

6

Sie können dies tun, mit Unter wählt für die Aggregat min und count Funktionen:

DELETE FROM the_table WHERE 
    the_field = (SELECT min(the_field) FROM the_table) 
    AND (SELECT count(*) FROM the_table) < 5; 
Verwandte Themen