15.10 - TIME ZONE - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

Default time zone displacement for the specified user.

You can specify these options:

  • LOCAL
  • NULL
  • ± ‘quotestring’
  • ‘time_zone_string’

See “CREATE USER” in SQL Data Definition Language - Detailed Topics, B035-1184 for the definitions of these options and for a comprehensive list of the time zone strings supported by Teradata Database.

Example: Creating a User Using the TIME ZONE=’time_zone_string’ Option

This example creates user_name with a default time zone displacement defined by the text string 'America Pacific'. When user_name is created, Teradata Database passes the time zone string to a system-defined UDF that validates it. The UDF is also called to retrieve the rules associated with the time zone string whenever user_name logs on.

If the value of the time_zone_string you specify is not valid, the system returns an error to the requestor.

     CREATE USER user_name
     FROM r_n_d AS
     PERMANENT = 1000000,
     PASSWORD = abbub279,
     SPOOL = 1200000,
     FALLBACK PROTECTION,
     DUAL AFTER JOURNAL,
     DEFAULT JOURNAL TABLE = r_n_d.journals,
     DEFAULT DATABASE = r_n_d,
     STARTUP = 'EXEC setpf;'
     ACCOUNT = '$mr_n_d','$hr_n_d',
     TIME ZONE = 'America Pacific';