sqlserver删除一天之外的数据

delete from 表 where datediff(MINUTE, 时间字段, GETDATE()) > 60*24;

posted @ 2021-02-04 15:23  快乐的菜菜  阅读(125)  评论(0)    收藏  举报