SQL sorting problems

Source: Internet
Author: User
There is a table with the id and start_time fields. I want to obtain a list with start_time & gt; now () at the top (), start_time & amp; lt; now () is at the end of the column, and there is no way to implement paging? In the past, the paging method I used was API reference... there was such a table, which had
Id and start_time Fields

I want to obtain a list with start_time> now () at the top (),
Start_time < p><>

In the past, the paging method was used to provide a field such as last_id by the API. If the field is set to 0 on the mobile terminal, the drop-down refresh will get the first page, when the second page is obtained, the last id of the first page is sent to the API as last_id, so that the server transmits the id < p><>

I don't know if this is a popular paging method...

Reply content:

There is such a table
Id and start_time Fields

I want to obtain a list with start_time> now () at the top (),
Start_time < p><>

In the past, the paging method was used to provide a field such as last_id by the API. If the field is set to 0 on the mobile terminal, the drop-down refresh will get the first page, when the second page is obtained, the last id of the first page is sent to the API as last_id, so that the server transmits the id < p><>

I don't know if this is a popular paging method...

If you want to implement this sort, you canOrder by start_time < code>
Explanation: start_time <>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.