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 — EXTRACT() Using VoltDBEXTRACT()EXTRACT() — Returns the value of a selected portion of a timestamp. SynopsisEXTRACT( selection-keyword FROM timestamp-expression ) EXTRACT( selection-keyword, timestamp-expression ) DescriptionThe EXTRACT() function returns the value of the selected portion of a timestamp. Table C.1, “Selectable Values for the EXTRACT Function” lists the supported keywords, the datatype of the value returned by the function, and a description of its contents. Table C.1. Selectable Values for the EXTRACT Function
The timestamp expression is interpreted as a VoltDB timestamp; That is, time measured in microseconds. ExampleThe following example lists all the contacts by name and birthday, listing the birthday as three separate fields for month, day, and year. SELECT Last_name, first_name, EXTRACT(MONTH FROM dateofbirth),
EXTRACT(DAY FROM dateofbirth), EXTRACT(YEAR FROM dateofbirth)
FROM contact_list
ORDER BY last_name, first_name; | ||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — 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. |