how can I skip the last value of a field when showing results?

Discussion in 'MySQL' started by dober, Jan 6, 2010.

  1. #1
    Hello,

    I need to show the second latest value of a table on the results, how can I skip the last value with mysql?

    i know that the last value will come up with something like this:

    SELECT * FROM noticias WHERE categoria = 2 ORDER BY id_noticia DESC LIMIT 1";  
    PHP:

    but how can I show the second one?


    thanks in advance!
     
    dober, Jan 6, 2010 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    SELECT * FROM noticias WHERE categoria = 2 ORDER BY id_noticia DESC LIMIT 1,1";
     
    crivion, Jan 7, 2010 IP