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 之前的所有记录。这是我的查询:
DELETE from ANNOUNCEMENT_TABLE WHERE ANNOUNCEMENT_DATE != SYSDATE
但它正在从数据库中删除所有记录。我怎样才能正确地做到这一点?
DELETE FROM ANNOUNCEMENT_TABLE WHERE ANNOUNCEMENT_DATE < TRUNC(SYSDATE);
从announcement_table 中删除announcement_date <> sysdate;或从announcement_table 中删除announcement_date