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.
如何获取时间戳字段的最小日期?
我试着用
select min(myDatefield) from mytable
但是此代码不返回最小日期,而是返回所有日期。任何线索为什么?
试试这个,这可能对你有用。
SELECT * FROM (SELECT MCSSP_AUDIT_ACTIVITY_DATE FROM MCSSP_MESG_AUDIT_BK ORDER BY MCSSP_AUDIT_ACTIVITY_DATE ASC ) WHERE rownum = 1;