@@ -57,32 +57,32 @@ s|Description
57
57
58
58
Basic arithmetic operators (`+`, `-`, etc) support date/time parameters as indicated below:
59
59
60
- [" source"," sql",subs="attributes,callouts,macros" ]
60
+ [source, sql]
61
61
--------------------------------------------------
62
62
include-tagged::{sql-specs}/docs.csv-spec[dtIntervalPlusInterval]
63
63
--------------------------------------------------
64
64
65
- [" source"," sql",subs="attributes,callouts,macros" ]
65
+ [source, sql]
66
66
--------------------------------------------------
67
67
include-tagged::{sql-specs}/docs.csv-spec[dtDateTimePlusInterval]
68
68
--------------------------------------------------
69
69
70
- [" source"," sql",subs="attributes,callouts,macros" ]
70
+ [source, sql]
71
71
--------------------------------------------------
72
72
include-tagged::{sql-specs}/docs.csv-spec[dtMinusInterval]
73
73
--------------------------------------------------
74
74
75
- [" source"," sql",subs="attributes,callouts,macros" ]
75
+ [source, sql]
76
76
--------------------------------------------------
77
77
include-tagged::{sql-specs}/docs.csv-spec[dtIntervalMinusInterval]
78
78
--------------------------------------------------
79
79
80
- [" source"," sql",subs="attributes,callouts,macros" ]
80
+ [source, sql]
81
81
--------------------------------------------------
82
82
include-tagged::{sql-specs}/docs.csv-spec[dtDateTimeMinusInterval]
83
83
--------------------------------------------------
84
84
85
- [" source"," sql",subs="attributes,callouts,macros" ]
85
+ [source, sql]
86
86
--------------------------------------------------
87
87
include-tagged::{sql-specs}/docs.csv-spec[dtIntervalMul]
88
88
--------------------------------------------------
@@ -116,25 +116,25 @@ Unlike CURRENT_DATE, `CURDATE()` can only be used as a function with no argument
116
116
117
117
This method always returns the same value for its every occurrence within the same query.
118
118
119
- [" source"," sql",subs="attributes,callouts,macros" ]
119
+ [source, sql]
120
120
--------------------------------------------------
121
121
include-tagged::{sql-specs}/docs.csv-spec[currentDate]
122
122
--------------------------------------------------
123
123
124
- [" source"," sql",subs="attributes,callouts,macros" ]
124
+ [source, sql]
125
125
--------------------------------------------------
126
126
include-tagged::{sql-specs}/docs.csv-spec[currentDateFunction]
127
127
--------------------------------------------------
128
128
129
- [" source"," sql",subs="attributes,callouts,macros" ]
129
+ [source, sql]
130
130
--------------------------------------------------
131
131
include-tagged::{sql-specs}/docs.csv-spec[curDateFunction]
132
132
--------------------------------------------------
133
133
134
134
Typically, this function (as well as its twin <<sql-functions-today,TODAY())>> function
135
135
is used for relative date filtering:
136
136
137
- [" source"," sql",subs="attributes,callouts,macros" ]
137
+ [source, sql]
138
138
--------------------------------------------------
139
139
include-tagged::{sql-specs}/docs.csv-spec[filterToday]
140
140
--------------------------------------------------
@@ -164,25 +164,25 @@ meaning a milliseconds precision current date/time will be returned.
164
164
165
165
This method always returns the same value for its every occurrence within the same query.
166
166
167
- [" source"," sql",subs="attributes,callouts,macros" ]
167
+ [source, sql]
168
168
--------------------------------------------------
169
169
include-tagged::{sql-specs}/docs.csv-spec[curTs]
170
170
--------------------------------------------------
171
171
172
- [" source"," sql",subs="attributes,callouts,macros" ]
172
+ [source, sql]
173
173
--------------------------------------------------
174
174
include-tagged::{sql-specs}/docs.csv-spec[curTsFunction]
175
175
--------------------------------------------------
176
176
177
- [" source"," sql",subs="attributes,callouts,macros" ]
177
+ [source, sql]
178
178
--------------------------------------------------
179
179
include-tagged::{sql-specs}/docs.csv-spec[curTsFunctionPrecision]
180
180
--------------------------------------------------
181
181
182
182
Typically, this function (as well as its twin <<sql-functions-now,NOW())>> function is used for
183
183
relative date/time filtering:
184
184
185
- [" source"," sql",subs="attributes,callouts,macros" ]
185
+ [source, sql]
186
186
--------------------------------------------------
187
187
include-tagged::{sql-specs}/docs.csv-spec[filterNow]
188
188
--------------------------------------------------
@@ -210,7 +210,7 @@ DAY_OF_MONTH(datetime_exp) <1>
210
210
211
211
Extract the day of the month from a date/datetime.
212
212
213
- [" source"," sql",subs="attributes,callouts,macros" ]
213
+ [source, sql]
214
214
--------------------------------------------------
215
215
include-tagged::{sql-specs}/docs.csv-spec[dayOfMonth]
216
216
--------------------------------------------------
@@ -234,7 +234,7 @@ DAY_OF_WEEK(datetime_exp) <1>
234
234
235
235
Extract the day of the week from a date/datetime. Sunday is `1`, Monday is `2`, etc.
236
236
237
- [" source"," sql",subs="attributes,callouts,macros" ]
237
+ [source, sql]
238
238
--------------------------------------------------
239
239
include-tagged::{sql-specs}/docs.csv-spec[dayOfWeek]
240
240
--------------------------------------------------
@@ -258,7 +258,7 @@ DAY_OF_YEAR(datetime_exp) <1>
258
258
259
259
Extract the day of the year from a date/datetime.
260
260
261
- [" source"," sql",subs="attributes,callouts,macros" ]
261
+ [source, sql]
262
262
--------------------------------------------------
263
263
include-tagged::{sql-specs}/docs.csv-spec[dayOfYear]
264
264
--------------------------------------------------
@@ -282,7 +282,7 @@ DAY_NAME(datetime_exp) <1>
282
282
283
283
Extract the day of the week from a date/datetime in text format (`Monday`, `Tuesday`...).
284
284
285
- [" source"," sql",subs="attributes,callouts,macros" ]
285
+ [source, sql]
286
286
--------------------------------------------------
287
287
include-tagged::{sql-specs}/docs.csv-spec[dayName]
288
288
--------------------------------------------------
@@ -306,7 +306,7 @@ HOUR_OF_DAY(datetime_exp) <1>
306
306
307
307
Extract the hour of the day from a date/datetime.
308
308
309
- [" source"," sql",subs="attributes,callouts,macros" ]
309
+ [source, sql]
310
310
--------------------------------------------------
311
311
include-tagged::{sql-specs}/docs.csv-spec[hourOfDay]
312
312
--------------------------------------------------
@@ -331,7 +331,7 @@ ISO_DAY_OF_WEEK(datetime_exp) <1>
331
331
Extract the day of the week from a date/datetime, following the https://en.wikipedia.org/wiki/ISO_week_date[ISO 8601 standard].
332
332
Monday is `1`, Tuesday is `2`, etc.
333
333
334
- [" source"," sql",subs="attributes,callouts,macros" ]
334
+ [source, sql]
335
335
--------------------------------------------------
336
336
include-tagged::{sql-specs}/docs.csv-spec[isoDayOfWeek]
337
337
--------------------------------------------------
@@ -356,7 +356,7 @@ ISO_WEEK_OF_YEAR(datetime_exp) <1>
356
356
Extract the week of the year from a date/datetime, following https://en.wikipedia.org/wiki/ISO_week_date[ISO 8601 standard]. The first week
357
357
of a year is the first week with a majority (4 or more) of its days in January.
358
358
359
- [" source"," sql",subs="attributes,callouts,macros" ]
359
+ [source, sql]
360
360
--------------------------------------------------
361
361
include-tagged::{sql-specs}/docs.csv-spec[isoWeekOfYear]
362
362
--------------------------------------------------
@@ -380,7 +380,7 @@ MINUTE_OF_DAY(datetime_exp) <1>
380
380
381
381
Extract the minute of the day from a date/datetime.
382
382
383
- [" source"," sql",subs="attributes,callouts,macros" ]
383
+ [source, sql]
384
384
--------------------------------------------------
385
385
include-tagged::{sql-specs}/docs.csv-spec[minuteOfDay]
386
386
--------------------------------------------------
@@ -404,7 +404,7 @@ MINUTE_OF_HOUR(datetime_exp) <1>
404
404
405
405
Extract the minute of the hour from a date/datetime.
406
406
407
- [" source"," sql",subs="attributes,callouts,macros" ]
407
+ [source, sql]
408
408
--------------------------------------------------
409
409
include-tagged::{sql-specs}/docs.csv-spec[minuteOfHour]
410
410
--------------------------------------------------
@@ -428,7 +428,7 @@ MONTH(datetime_exp) <1>
428
428
429
429
Extract the month of the year from a date/datetime.
430
430
431
- [" source"," sql",subs="attributes,callouts,macros" ]
431
+ [source, sql]
432
432
--------------------------------------------------
433
433
include-tagged::{sql-specs}/docs.csv-spec[monthOfYear]
434
434
--------------------------------------------------
@@ -452,7 +452,7 @@ MONTH_NAME(datetime_exp) <1>
452
452
453
453
Extract the month from a date/datetime in text format (`January`, `February`...).
454
454
455
- [" source"," sql",subs="attributes,callouts,macros" ]
455
+ [source, sql]
456
456
--------------------------------------------------
457
457
include-tagged::{sql-specs}/docs.csv-spec[monthName]
458
458
--------------------------------------------------
@@ -476,15 +476,15 @@ This function offers the same functionality as <<sql-functions-current-timestamp
476
476
the datetime when the current query reached the server. This method always returns the same value for its every
477
477
occurrence within the same query.
478
478
479
- [" source"," sql",subs="attributes,callouts,macros" ]
479
+ [source, sql]
480
480
--------------------------------------------------
481
481
include-tagged::{sql-specs}/docs.csv-spec[nowFunction]
482
482
--------------------------------------------------
483
483
484
484
Typically, this function (as well as its twin <<sql-functions-current-timestamp,CURRENT_TIMESTAMP())>> function is used
485
485
for relative date/time filtering:
486
486
487
- [" source"," sql",subs="attributes,callouts,macros" ]
487
+ [source, sql]
488
488
--------------------------------------------------
489
489
include-tagged::{sql-specs}/docs.csv-spec[filterNow]
490
490
--------------------------------------------------
@@ -508,7 +508,7 @@ SECOND_OF_MINUTE(datetime_exp) <1>
508
508
509
509
Extract the second of the minute from a date/datetime.
510
510
511
- [" source"," sql",subs="attributes,callouts,macros" ]
511
+ [source, sql]
512
512
--------------------------------------------------
513
513
include-tagged::{sql-specs}/docs.csv-spec[secondOfMinute]
514
514
--------------------------------------------------
@@ -532,7 +532,7 @@ QUARTER(datetime_exp) <1>
532
532
533
533
Extract the year quarter the date/datetime falls in.
534
534
535
- [" source"," sql",subs="attributes,callouts,macros" ]
535
+ [source, sql]
536
536
--------------------------------------------------
537
537
include-tagged::{sql-specs}/docs.csv-spec[quarter]
538
538
--------------------------------------------------
@@ -556,15 +556,15 @@ This function offers the same functionality as <<sql-functions-current-date,CURR
556
556
the date when the current query reached the server. This method always returns the same value for its every occurrence
557
557
within the same query.
558
558
559
- [" source"," sql",subs="attributes,callouts,macros" ]
559
+ [source, sql]
560
560
--------------------------------------------------
561
561
include-tagged::{sql-specs}/docs.csv-spec[todayFunction]
562
562
--------------------------------------------------
563
563
564
564
Typically, this function (as well as its twin <<sql-functions-current-timestamp,CURRENT_TIMESTAMP())>> function is used
565
565
for relative date filtering:
566
566
567
- [" source"," sql",subs="attributes,callouts,macros" ]
567
+ [source, sql]
568
568
--------------------------------------------------
569
569
include-tagged::{sql-specs}/docs.csv-spec[filterToday]
570
570
--------------------------------------------------
@@ -588,7 +588,7 @@ WEEK_OF_YEAR(datetime_exp) <1>
588
588
589
589
Extract the week of the year from a date/datetime.
590
590
591
- [" source"," sql",subs="attributes,callouts,macros" ]
591
+ [source, sql]
592
592
--------------------------------------------------
593
593
include-tagged::{sql-specs}/docs.csv-spec[weekOfYear]
594
594
--------------------------------------------------
@@ -612,7 +612,7 @@ YEAR(datetime_exp) <1>
612
612
613
613
Extract the year from a date/datetime.
614
614
615
- [" source"," sql",subs="attributes,callouts,macros" ]
615
+ [source, sql]
616
616
--------------------------------------------------
617
617
include-tagged::{sql-specs}/docs.csv-spec[year]
618
618
--------------------------------------------------
@@ -640,14 +640,14 @@ EXTRACT(
640
640
Extract fields from a date/datetime by specifying the name of a <<sql-functions-datetime,datetime function>>.
641
641
The following
642
642
643
- [" source"," sql",subs="attributes,callouts,macros" ]
643
+ [source, sql]
644
644
--------------------------------------------------
645
645
include-tagged::{sql-specs}/docs.csv-spec[extractDayOfYear]
646
646
--------------------------------------------------
647
647
648
648
is the equivalent to
649
649
650
- [" source"," sql",subs="attributes,callouts,macros" ]
650
+ [source, sql]
651
651
--------------------------------------------------
652
652
include-tagged::{sql-specs}/docs.csv-spec[dayOfYear]
653
653
--------------------------------------------------
0 commit comments