Oracle vs. MySQL Current time comparison

Source: Internet
Author: User

Selectp.id,p.order_num,p.image_url,p.url,p.image_topic, P.is_download, P.big_image_url, P.begin _time,p.end_time fromPage_index_img PwhereP.is_delete='N'                          andP.image_type=7                          andP.url=app andNow ()>=P.begin_time andNow ()<P.end_timeOrder  byP.order_num
 SelectEht. Tab_id,eht. Tab_name fromEc_homepage_tab ehtWHEREEht.is_delete= 'N'             andEht. State_num<> 1             andTo_date (EHT. Online_time,'YYYY/MM/DD Hh24:mi:ss')<=sysdate andTo_date (EHT. Offline_time,'YYYY/MM/DD Hh24:mi:ss')>=sysdateORDER  byEht. Order_num;

Oracle vs. MySQL Current time comparison

Related Article

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.