morrySnow commented on code in PR #2197: URL: https://github.com/apache/doris-website/pull/2197#discussion_r2020456171
########## docs/sql-manual/sql-functions/scalar-functions/date-time-functions/weeks-sub.md: ########## @@ -24,27 +24,45 @@ specific language governing permissions and limitations under the License. --> -## weeks_sub -### description -#### Syntax -`DATETIME WEEKS_SUB(DATETIME date, INT weeks)` +## Description +Subtracts a specified number of weeks from a specified date or time value (i.e., subtracts weeks * 7 days). -Subtracts a specified number of weeks from a datetime or date +## Syntax +```sql +WEEKS_SUB(<date_value>, <week_period>) +``` -The parameter date can be DATETIME or DATE, and the return type is consistent with that of the parameter date. +## Required parameters +## 必选参数 Review Comment: 多余的中文标题 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org