yeahz Posted June 17, 2009 Report Share Posted June 17, 2009 Ir kāda iespēja izvēlēties vislielāko skaitli no tabulas? Manā gadījumā tas ir id. Es domāju apmēram kaut ko šādu: mysql_query("SELECT id FROM table WHERE id='vislielākais vai kaut kā tā'"); Quote Link to comment Share on other sites More sharing options...
marcis Posted June 17, 2009 Report Share Posted June 17, 2009 Lieto MAX() funckciju. Quote Link to comment Share on other sites More sharing options...
PheliX Posted June 17, 2009 Report Share Posted June 17, 2009 SELECT id FROM table ORDER BY id DESC LIMIT 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.