@@ -59,32 +59,32 @@ s|Description
59
59
60
60
Basic arithmetic operators (`+`, `-`, etc) support date-time parameters as indicated below:
61
61
62
- [" source"," sql",subs="attributes,callouts,macros" ]
62
+ [source, sql]
63
63
--------------------------------------------------
64
64
include-tagged::{sql-specs}/docs.csv-spec[dtIntervalPlusInterval]
65
65
--------------------------------------------------
66
66
67
- [" source"," sql",subs="attributes,callouts,macros" ]
67
+ [source, sql]
68
68
--------------------------------------------------
69
69
include-tagged::{sql-specs}/docs.csv-spec[dtDatePlusInterval]
70
70
--------------------------------------------------
71
71
72
- [" source"," sql",subs="attributes,callouts,macros" ]
72
+ [source, sql]
73
73
--------------------------------------------------
74
74
include-tagged::{sql-specs}/docs.csv-spec[dtMinusInterval]
75
75
--------------------------------------------------
76
76
77
- [" source"," sql",subs="attributes,callouts,macros" ]
77
+ [source, sql]
78
78
--------------------------------------------------
79
79
include-tagged::{sql-specs}/docs.csv-spec[dtIntervalMinusInterval]
80
80
--------------------------------------------------
81
81
82
- [" source"," sql",subs="attributes,callouts,macros" ]
82
+ [source, sql]
83
83
--------------------------------------------------
84
84
include-tagged::{sql-specs}/docs.csv-spec[dtDateMinusInterval]
85
85
--------------------------------------------------
86
86
87
- [" source"," sql",subs="attributes,callouts,macros" ]
87
+ [source, sql]
88
88
--------------------------------------------------
89
89
include-tagged::{sql-specs}/docs.csv-spec[dtIntervalMul]
90
90
--------------------------------------------------
@@ -117,25 +117,25 @@ parameter for rounding the second fractional digits (nanoseconds).
117
117
118
118
This method always returns the same value within a query.
119
119
120
- [" source"," sql",subs="attributes,callouts,macros" ]
120
+ [source, sql]
121
121
--------------------------------------------------
122
122
include-tagged::{sql-specs}/docs.csv-spec[curTs]
123
123
--------------------------------------------------
124
124
125
- [" source"," sql",subs="attributes,callouts,macros" ]
125
+ [source, sql]
126
126
--------------------------------------------------
127
127
include-tagged::{sql-specs}/docs.csv-spec[curTsFunction]
128
128
--------------------------------------------------
129
129
130
- [" source"," sql",subs="attributes,callouts,macros" ]
130
+ [source, sql]
131
131
--------------------------------------------------
132
132
include-tagged::{sql-specs}/docs.csv-spec[curTsFunctionPrecision]
133
133
--------------------------------------------------
134
134
135
135
Typically, this function (as well as its twin <<sql-functions-now,NOW())>> function is used for
136
136
relative date/time filtering:
137
137
138
- [" source"," sql",subs="attributes,callouts,macros" ]
138
+ [source, sql]
139
139
--------------------------------------------------
140
140
include-tagged::{sql-specs}/docs.csv-spec[filterNow]
141
141
--------------------------------------------------
@@ -163,7 +163,7 @@ DAY_OF_MONTH(date_exp) <1>
163
163
164
164
Extract the day of the month from a date.
165
165
166
- [" source"," sql",subs="attributes,callouts,macros" ]
166
+ [source, sql]
167
167
--------------------------------------------------
168
168
include-tagged::{sql-specs}/docs.csv-spec[dayOfMonth]
169
169
--------------------------------------------------
@@ -187,7 +187,7 @@ DAY_OF_WEEK(date_exp) <1>
187
187
188
188
Extract the day of the week from a date. Sunday is `1`, Monday is `2`, etc.
189
189
190
- [" source"," sql",subs="attributes,callouts,macros" ]
190
+ [source, sql]
191
191
--------------------------------------------------
192
192
include-tagged::{sql-specs}/docs.csv-spec[dayOfWeek]
193
193
--------------------------------------------------
@@ -211,7 +211,7 @@ DAY_OF_YEAR(date_exp) <1>
211
211
212
212
Extract the day of the year from a date.
213
213
214
- [" source"," sql",subs="attributes,callouts,macros" ]
214
+ [source, sql]
215
215
--------------------------------------------------
216
216
include-tagged::{sql-specs}/docs.csv-spec[dayOfYear]
217
217
--------------------------------------------------
@@ -235,7 +235,7 @@ DAY_NAME(date_exp) <1>
235
235
236
236
Extract the day of the week from a datetime in text format (`Monday`, `Tuesday`...).
237
237
238
- [" source"," sql",subs="attributes,callouts,macros" ]
238
+ [source, sql]
239
239
--------------------------------------------------
240
240
include-tagged::{sql-specs}/docs.csv-spec[dayName]
241
241
--------------------------------------------------
@@ -259,7 +259,7 @@ HOUR_OF_DAY(date_exp) <1>
259
259
260
260
Extract the hour of the day from a date.
261
261
262
- [" source"," sql",subs="attributes,callouts,macros" ]
262
+ [source, sql]
263
263
--------------------------------------------------
264
264
include-tagged::{sql-specs}/docs.csv-spec[hourOfDay]
265
265
--------------------------------------------------
@@ -284,7 +284,7 @@ ISO_DAY_OF_WEEK(date_exp) <1>
284
284
Extract the day of the week from a date, following the https://en.wikipedia.org/wiki/ISO_week_date[ISO 8601 standard].
285
285
Monday is `1`, Tuesday is `2`, etc.
286
286
287
- [" source"," sql",subs="attributes,callouts,macros" ]
287
+ [source, sql]
288
288
--------------------------------------------------
289
289
include-tagged::{sql-specs}/docs.csv-spec[isoDayOfWeek]
290
290
--------------------------------------------------
@@ -309,7 +309,7 @@ ISO_WEEK_OF_YEAR(date_exp) <1>
309
309
Extract the week of the year from a date, following https://en.wikipedia.org/wiki/ISO_week_date[ISO 8601 standard]. The first week
310
310
of a year is the first week with a majority (4 or more) of its days in January.
311
311
312
- [" source"," sql",subs="attributes,callouts,macros" ]
312
+ [source, sql]
313
313
--------------------------------------------------
314
314
include-tagged::{sql-specs}/docs.csv-spec[isoWeekOfYear]
315
315
--------------------------------------------------
@@ -333,7 +333,7 @@ MINUTE_OF_DAY(date_exp) <1>
333
333
334
334
Extract the minute of the day from a date.
335
335
336
- [" source"," sql",subs="attributes,callouts,macros" ]
336
+ [source, sql]
337
337
--------------------------------------------------
338
338
include-tagged::{sql-specs}/docs.csv-spec[minuteOfDay]
339
339
--------------------------------------------------
@@ -357,7 +357,7 @@ MINUTE_OF_HOUR(date_exp) <1>
357
357
358
358
Extract the minute of the hour from a date.
359
359
360
- [" source"," sql",subs="attributes,callouts,macros" ]
360
+ [source, sql]
361
361
--------------------------------------------------
362
362
include-tagged::{sql-specs}/docs.csv-spec[minuteOfHour]
363
363
--------------------------------------------------
@@ -381,7 +381,7 @@ MONTH(date_exp) <1>
381
381
382
382
Extract the month of the year from a date.
383
383
384
- [" source"," sql",subs="attributes,callouts,macros" ]
384
+ [source, sql]
385
385
--------------------------------------------------
386
386
include-tagged::{sql-specs}/docs.csv-spec[monthOfYear]
387
387
--------------------------------------------------
@@ -405,7 +405,7 @@ MONTH_NAME(date_exp) <1>
405
405
406
406
Extract the month from a datetime in text format (`January`, `February`...).
407
407
408
- [" source"," sql",subs="attributes,callouts,macros" ]
408
+ [source, sql]
409
409
--------------------------------------------------
410
410
include-tagged::{sql-specs}/docs.csv-spec[monthName]
411
411
--------------------------------------------------
@@ -428,15 +428,15 @@ NOW()
428
428
This function offers the same functionality as <<sql-functions-current-timestamp,CURRENT_TIMESTAMP()>> function: returns the date/time
429
429
when the current query reached the server. This method always returns the same value within a query.
430
430
431
- [" source"," sql",subs="attributes,callouts,macros" ]
431
+ [source, sql]
432
432
--------------------------------------------------
433
433
include-tagged::{sql-specs}/docs.csv-spec[nowFunction]
434
434
--------------------------------------------------
435
435
436
436
Typically, this function (as well as its twin <<sql-functions-current-timestamp,CURRENT_TIMESTAMP())>> function is used for
437
437
relative date/time filtering:
438
438
439
- [" source"," sql",subs="attributes,callouts,macros" ]
439
+ [source, sql]
440
440
--------------------------------------------------
441
441
include-tagged::{sql-specs}/docs.csv-spec[filterNow]
442
442
--------------------------------------------------
@@ -460,7 +460,7 @@ SECOND_OF_MINUTE(date_exp) <1>
460
460
461
461
Extract the second of the minute from a date.
462
462
463
- [" source"," sql",subs="attributes,callouts,macros" ]
463
+ [source, sql]
464
464
--------------------------------------------------
465
465
include-tagged::{sql-specs}/docs.csv-spec[secondOfMinute]
466
466
--------------------------------------------------
@@ -484,7 +484,7 @@ QUARTER(date_exp) <1>
484
484
485
485
Extract the year quarter the date falls in.
486
486
487
- [" source"," sql",subs="attributes,callouts,macros" ]
487
+ [source, sql]
488
488
--------------------------------------------------
489
489
include-tagged::{sql-specs}/docs.csv-spec[quarter]
490
490
--------------------------------------------------
@@ -508,7 +508,7 @@ WEEK_OF_YEAR(date_exp) <1>
508
508
509
509
Extract the week of the year from a date.
510
510
511
- [" source"," sql",subs="attributes,callouts,macros" ]
511
+ [source, sql]
512
512
--------------------------------------------------
513
513
include-tagged::{sql-specs}/docs.csv-spec[weekOfYear]
514
514
--------------------------------------------------
@@ -532,7 +532,7 @@ YEAR(date_exp) <1>
532
532
533
533
Extract the year from a date.
534
534
535
- [" source"," sql",subs="attributes,callouts,macros" ]
535
+ [source, sql]
536
536
--------------------------------------------------
537
537
include-tagged::{sql-specs}/docs.csv-spec[year]
538
538
--------------------------------------------------
@@ -560,14 +560,14 @@ EXTRACT(
560
560
Extract fields from a datetime by specifying the name of a <<sql-functions-datetime,datetime function>>.
561
561
The following
562
562
563
- [" source"," sql",subs="attributes,callouts,macros" ]
563
+ [source, sql]
564
564
--------------------------------------------------
565
565
include-tagged::{sql-specs}/docs.csv-spec[extractDayOfYear]
566
566
--------------------------------------------------
567
567
568
568
is the equivalent to
569
569
570
- [" source"," sql",subs="attributes,callouts,macros" ]
570
+ [source, sql]
571
571
--------------------------------------------------
572
572
include-tagged::{sql-specs}/docs.csv-spec[dayOfYear]
573
573
--------------------------------------------------
0 commit comments