Contents Aster SQL and Function Reference


Add to my manuals
228 Pages

advertisement

Contents Aster SQL and Function Reference | Manualzz

Date/Time Keywords Aster Data proprietary and confidential

If the token is three digits and a year has already been read, then interpret as day of year.

If four or six digits and a year has already been read, then interpret as a time (HHMM or

HHMMSS).

If three or more digits and no date fields have yet been found, interpret as a year (this forces yy-mm-dd ordering of the remaining date fields).

Otherwise the date field ordering is assumed to follow the DateStyle setting: mm-dd-yy, dd-mm-yy, or yy-mm-dd. Throw an error if a month or day field is found to be out of range.

4.

If BC has been specified, negate the year and add one for internal storage. (There is no year zero in the Gregorian calendar, so numerically 1 BC becomes year zero.)

5.

If BC was not specified, and if the year field was two digits in length, then adjust the year to four digits. If the field is less than 70, then add 2000, otherwise add 1900.

Tip: Gregorian years AD 1-99 may be entered by using 4 digits with leading zeros (e.g., 0099 is

AD 99).

Date/Time Keywords

Month Names (page V-182)

Day-of-Week Names (page V-182)

Date Time Field Modifiers (page V-183)

Month Names

The table below shows the tokens that are recognized as names of months.

Table 5-1 Month Names

Month Abbreviations

January

February

March

April

Jan

Feb

Mar

Apr

May May

June Jun

July

August

Jul

Aug

September

October

November

December

Sep, Sept

Oct

Nov

Dec

Day-of-Week Names

The table shows the tokens that are recognized as names of days of the week.

V--182 Database SQL and Function Reference, version 4.6.2

aster data

Aster Data proprietary and confidential

Table 5-2 Day-of-week names

Day Abbreviations

Sunday

Monday

Tuesday

Wednesday

Thursday

Friday

Saturday

Sun

Mon

Tue, Tues

Wed, Weds

Thu, Thur, Thurs

Fri

Sat

Date Time Field Modifiers

The table below shows the tokens that serve various modifier purposes.

Table 5-3 Date Time Field Modifiers

Identifier Description

ABSTIME

AM

AT

JULIAN, JD, J

ON

PM

T

Ignored

Time is before 12:00

Ignored

Next field is Julian Day

Ignored

Time is on or after 12:00

Next field is time

The keyword

ABSTIME

is ignored for historical reasons.

Date/Time Keywords

December 14, 2011 Date and Time V--183

Date/Time Keywords Aster Data proprietary and confidential

V--184 Database SQL and Function Reference, version 4.6.2

aster data

December 14, 2011

V--6

Data Dictionary Views

The queen node is the host for the data dictionary views and system tables. Aster’s data dictionary views are an SQL interface where you can examine the state of the cluster, its databases, and its data. The data dictionary views can be divided into the following categories:

Introduction to Data Dictionary Views (page V-186)

User-Related Data Dictionary Views (page V-186)

Role-Related Data Dictionary Views (page V-187)

Group Membership Data Dictionary Views (page V-187)

Database-Related Data Dictionary Views (page V-187)

Schema-Related Data Dictionary Views (page V-188)

SQL-MapReduce and Installed File-Related Data Dictionary Views (page V-188)

Table-Related Data Dictionary Views (page V-190)

Column-Related Data Dictionary Views (page V-190)

Index-Related Data Dictionary Views (page V-191)

Constraint-Related Data Dictionary Views (page V-191)

Logical Partition-Related Data Dictionary Views (page V-192)

Inheritance-Related Data Dictionary Views (page V-193)

Types Data Dictionary View (page V-193)

Cluster State Data Dictionary Views (page V-193)

Physical Node State: nc_physical_node_state (page V-193)

Storage State: nc_cluster_storage (page V-194)

Activity Data Dictionary Views (page V-194)

Session Statistics: nc_all_sessions (page V-194)

Transaction Statistics: nc_all_transactions (page V-195)

Transaction Phases: nc_all_transaction_phases (page V-195)

Statement Statistics: nc_all_statements (page V-195)

Load Error Logging Tables (page V-196)

Load Error Statistics Tables (page V-197)

Temporary Data Dictionary Views (page V-198)

Aster Data proprietary and confidential V--185

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

advertisement

Table of contents