Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Posts
    52

    Question Unanswered: LIMIT function in sql?????

    i want to get last 6 rows or according to last n number of rows, wat should i do, do i have to use LIMIT function , if i have to then how it will work , or any other suggestions???//

  2. #2
    Join Date
    Nov 2002
    Location
    Jersey
    Posts
    10,322
    Based on what? What defines last?

    SELECT TOP 6 * FROM myTable99 ORDER BY Col1 DESC
    Brett
    8-)

    It's a Great Day for America everybody!

    dbforums Yak CorralRadio 'Rita
    dbForums Member List
    I'm Good Once as I ever was

    The physical order of data in a database has no meaning.

  3. #3
    Join Date
    Jan 2003
    Posts
    52
    by order of last entries , that is the item# in the table items, hmm wat u have suggested will work, i hope so , thanx

Posting Permissions

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