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.
我已经在表中插入了名为 enddate 的日期时间列的数据。我想更新所有行
enddate = enddate - 1 minute.
我怎么能这样做?
谢谢萨默
UPDATE tableName SET enddate = DATEADD(minute, -1, enddate)
细节DATEADD
DATEADD