今天做了一个小小的练习,两个日期相减,得到一个有小数点的值,
SQL> select last_name,(sysdate-hire_date) as day 2 from employees 3 where department_id = 90; LAST_NAME DAY ------------------------- ---------- King 4900.49736 Kochhar 4073.49736 De Haan 5785.49736
时间: 2024-10-13 17:00:32