Sort by date in ascending order, and the date must be greater than 0

Source: Internet
Author: User
Sort by date in ascending order, and the date field must be greater than 0 in the timestamp format. Sort by ascending order, and the date must be greater than zero. I don't know how to implement the program? It is better to use a simple method. thank you. ------ Solution ------------------ SQLcode... WHERE 'Date' & gt; 0ORDERBY 'date' ASC ------ solution ----------- sort by date in ascending order, and the date must be greater than 0
The date field uses the timestamp format and is sorted in ascending order. The date must be greater than zero. I don't know how to implement the program? It is better to use a simple method. thank you.

------ Solution --------------------
SQL code
... WHERE 'Date'> 0 order by 'date' ASC
------ Solution --------------------
Select * from t where 'time'> 0 order by 'time' asc;
------ Solution --------------------
The timestamp is equal to 0.
It indicates the time 00:00:00 on January 1 ,.
The former is negative, and the latter is positive.

Isn't it true that "all those whose dates are 0 will be filtered out?
Didn't you ask "to sort by ascending order, and the date must be greater than zero?

Is there any special meaning that this zero is not 0?

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.