参考 https://zhidao.baidu.com/question/750666819064717772.html
select dateadd(dd,-30,getdate()) from 表名
select
dateadd(dd,-30,getdate())
from
表名