show all records apart from First

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default show all records apart from First

    This may be really easy - but can anyone tell me how to create a record set to
    show all records except the first record.
    I would use the primary key ID but it may change with adding and deleting of
    records. So just to show all except the lowest ID

    any ideas?

    Moragreid Guest

  2. Similar Questions and Discussions

    1. MMColParam and Default Show All Records?
      I have a recordset and I want to set the default variable for MMColParam to default to showing all records in case the page is called outside of the...
    2. database - show all records apart from the 1st...how?
      Hi, We have an events calendar in Access, and we are using VBScript/ASP for the site. Is it possible to display ALL events, apart from the 1st...
    3. Show Multiple Records in one Row
      Hi We can do this using Cross Tab SQL Query. Can you send the Table name and fields so that i can give you the correct Cross Tab Query for this....
    4. How to get all records to show in the database all the time please
      Shuqian <peacedmr@yahoo.com> wrote: After you enter Find mode and enter your search criteria, you have to hit Enter to perform the Find. You...
    5. new records will not show up in form
      I have created a form using a query and I want to add new records, and I want them to show up in the form. However, when I add new records they...
  3. #2

    Default Re: show all records apart from First

    You could try this

    <%
    Recordset.MoveNext
    While Not Recordset.EOF
    Response.Write Recordset("MyRecord") & "<br>"
    Recordset.MoveNext
    Wend
    %>

    Grant
    "Moragreid" <webforumsuser@macromedia.com> wrote in message
    news:d3lj7f$hf$1@forums.macromedia.com...
    > This may be really easy - but can anyone tell me how to create a record
    > set to
    > show all records except the first record.
    > I would use the primary key ID but it may change with adding and deleting
    > of
    > records. So just to show all except the lowest ID
    >
    > any ideas?
    >

    Grant Berkeley Guest

  4. #3

    Default Re: show all records apart from First

    Moragreid wrote:
    > This may be really easy - but can anyone tell me how to create a record set to
    > show all records except the first record.
    When asking for advice of this sort, you need to specify which database
    you're working with, because the syntax is often different.

    If you're using MySQL, put this at the end of your SELECT statement:

    LIMIT 1,999999999999999999999

    For example:

    SELECT * FROM mytable
    WHERE this = 'that'
    ORDER BY primary_key
    LIMIT 1,999999999999999999999

    That will skip the first item. The 999999999999999999999 is an
    arbritrarily high number to indicate that you want all records.

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

  5. #4

    Default Re: show all records apart from First

    Something like

    select * from t where in not in (
    select id from t order by id
    )
    order by id

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139