date 参数是合法的日期表达式。expr 参数是您希望添加的时间间隔。 type 参数可以是下列值: | type | |--| MICROSECOND SECOND MINUTE HOUR DAY WEEK MONTH QUARTER YEAR SECOND_MICROSECOND MINUTE_MICROSECOND MINUTE_SECOND HOUR_MICROSECOND HOUR_SECOND HOUR_MINUTE DAY_MICROSECOND DAY_SECOND DAY_MINUTE DAY_HOUR YEAR_MONTH
SELECT year, country, product, profit, ROW_NUMBER() OVER(PARTITIONBY country) AS row_num1, ROW_NUMBER() OVER(PARTITIONBY country ORDERBYyear, product) AS row_num2 FROM sales;