TODAY 函数

TODAY 函数返回当前系统日期。如果下列查询是在当前系统日期为 1998 年 7 月 10 日时发出的,它返回这一行。

图: 查询

SELECT * FROM orders WHERE order_date = TODAY; 

图: 查询结果

order_num      1018
          order_date     07/10/1998
          customer_num   121
          ship_instruct  SW corner of Biltmore Mall
          backlog        n
          po_num         S22942
          ship_date      07/13/1998
          ship_weight    70.50
          ship_charge    $20.00
          paid_date      08/06/1998