使用DateAdd我可以添加或減去所需的天數,但是我不知道如何獲得所需格式的結果(mmddyyyy)並將其添加到使用wget下載的網址。 @ECHO Off
for /f "tokens=*" %%i in ('DateAdd -30') do set minusonemonth=%%i
for /f "tokens=*" %%i in ('DateAdd 90') do set addth
select maintance_action_date,add_months(maintenance_action_date,3)
as Service_By
from maintenance
where bike_no = 1;
到目前爲止,這個查詢顯示我所有的時間,自行車已經過維護,然後增加3個月。不過,我希望它顯示最近的日期並添加三個月。任何人都知道我會如何做到這一點。
我有以下查詢: SELECT
p.name as Name, SUM(r.attempts) as Attempts, SUM(r.gains) as Positive,
SUM(r.losses) as Negative, SUM(r.yards) as Net, SUM(r.touchdowns) as TD,
SUM(r.longest) as Long, y