-
-
姝数 数据达人Lv4
发表于2019-8-27 10:59
悬赏1
已解决
楼主
在Bi4.7中,计划任务里执行要定期删除以前数据,只保留最新一期的数据,这该怎么写
最佳答案
姝数 发表于 2019-8-27 11:38
嗯,这个知道执行sql,sql里面的怎么写
delete from 表 where 条件值 delete from table where riqi not in(select max(riqi) from table)
9个回答
姝数 发表于 2019-8-27 11:38
嗯,这个知道执行sql,sql里面的怎么写
delete from 表 where 条件值 delete from table where riqi not in(select max(riqi) from table)
缱绻 发表于 2019-8-27 13:42
delete from 表 where 条件值 delete from table where riqi not in(select max(riqi) from table ...
嗯嗯,好的,收到,谢谢


