Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
请任何人都可以帮助我如何找到当前sysdate日期和特定日期之间的天数?
sysdate
如果我们在任何列中插入那一天,那么我们可以做到,但我想直接找到。
试试这个——
SELECT DATEDIFF(DAY, '20110101', GETDATE())
select sysdate-hiredate xyzzz from emp; 这也是一个过程
select sysdate-hiredate xyzzz from emp;