例如,我在表格行finish
中有值:
20-JAN-06;
21-SEP-06;
12-FEB-10;
15-MAR-09;
03-JUL-09;
23-JAN-09;
我如何将它们与它们进行比较sysdate
?我知道这段代码不正确:
Select name from project where finish <= sysdate ;
类似的尝试因为我没有预言机来测试它
SELECT EMP_NAME, EMPNO
FROM EMP
WHERE TRUNC(START_DATE) = TRUNC(SYSDATE);
或者
SELECT emp_name, empno
FROM emp
WHERE start_date >= TRUNC(SYSDATE)
and start_date < TRUNC(SYSDATE)+1
Select name
from project
where to_date(finish, 'DD-MON-YY') <= trunc(sysdate)