GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.voltdb.com — WEEKDAY() Using VoltDBWEEKDAY()WEEKDAY() — Returns the day of the week as an integer between 0 and 6. SynopsisWEEKDAY( timestamp-or-date ) DescriptionThe WEEKDAY() function returns an integer value between 0 and 6 representing the day of the week in a date or timestamp value. For the WEEKDAY() function, the week starts (0) on Monday and ends (6) on Sunday. This function is provided for compatibility with MySQL and produces the same result as using the WEEKDAY keyword with the EXTRACT() function. ExamplesThe following example uses WEEKDAY() and the DECODE() function to return a string value representing the day of the week for the specified TIMESTAMP value. SELECT eventtime,
DECODE(WEEKDAY(eventtime),
0, 'Monday',
1, 'Tuesday',
2, 'Wednesday',
3, 'Thursday',
4, 'Friday',
5, 'Saturday',
6, 'Sunday') AS eventday
FROM event ORDER BY eventtime; |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |