Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
返回原始日期减去指定周数后的日期。
DATETIME weeks_sub(DATETIME|DATE expr1, INT expr2)
expr1
expr2
INT
DATETIME
select weeks_sub('2022-12-22',2); +----------------------------+ | weeks_sub('2022-12-22', 2) | +----------------------------+ | 2022-12-08 00:00:00 | +----------------------------+