Results 1 to 2 of 2
  1. #1
    Jana212 Guest

    Question Seelcting all rows except last few rows

    I have a table with some data and I want to select all the rows except for last 100 records. How do i do that ?
    I can do it programatically but i want to keep it clean.

  2. #2
    FatBoy Guest

    Default

    You can do
    SELECT * FROM ints ORDER BY i DESC LIMIT 100,100000

    If you want to remove certain number of rows from top then just replace desc with asc.

Bookmarks

Posting Permissions

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