CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Location
    AR
    Posts
    228

    MySQL 4: Select last 100 records from table

    I have a table in which items are constantly added with a date and time indicator, but I need to retrieve from it only the last 100 items added.

    Any help will be greatly appreciated, thanks!

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: MySQL 4: Select last 100 records from table

    PHP Code:
    Select From TABLENAME Order BY DateField Desc Limit 100 

  3. #3
    Join Date
    Feb 2003
    Location
    AR
    Posts
    228

    Re: MySQL 4: Select last 100 records from table

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured