daleader Posted January 27, 2004 Report Share Posted January 27, 2004 kjipa ir zinju lapa un tur paraada tikai piecsa zinjas un ir arhivs kuraa paraada kaadas veel ir zinas o.k, bet kaa uzlikt lai neraada taas piecas kas ir saakum lapaa?? Link to comment Share on other sites More sharing options...
Aleksejs Posted January 27, 2004 Report Share Posted January 27, 2004 Ja pieņem, ka tās, kas pirmajā lapā ir piecas jaunākās, tad: SELECT * FROM zinjutabula ORDER BY zinjudatums DESC LIMIT 5 Ja vienkārši ir piecas ziņas, tad kaut kā tā: SELECT * FROM zinjutabula WHERE (zinjas_id <> pirmaaszinjas_id) AND (zinjas_id <> otraaszinjas_id) ... Link to comment Share on other sites More sharing options...
daleader Posted January 28, 2004 Author Report Share Posted January 28, 2004 dabuuju un tas izskataas taa SELECT * FROM tabula order by id desc limit 5,50 Link to comment Share on other sites More sharing options...
Recommended Posts