13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

648 Naming Conventions <strong>for</strong> Netezza 4 Chapter 22Naming Conventions <strong>for</strong> NetezzaFor general in<strong>for</strong>mation about this feature, see Chapter 2, “<strong>SAS</strong> Names and Support<strong>for</strong> DBMS Names,” on page 11.Since <strong>SAS</strong> 7, most <strong>SAS</strong> names can be up to 32 characters long. <strong>SAS</strong>/<strong>ACCESS</strong>Interface to Netezza supports table names and column names that contain up to 32characters. If DBMS column names are longer than 32 characters, they are truncatedto 32 characters. If truncating a column name would result in identical names, <strong>SAS</strong>generates a unique name by replacing the last character with a number. DBMS tablenames must be 32 characters or less because <strong>SAS</strong> does not truncate a longer name. Ifyou already have a table name that is greater than 32 characters, it is recommendedthat you create a table view.The PRESERVE_COL_NAMES= and PRESERVE_TAB_NAMES= options determinehow <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Netezza handles case sensitivity. (For in<strong>for</strong>mation aboutthese options, see “Overview of the LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” onpage 87.) Netezza is not case sensitive, and all names default to lowercase.Netezza objects include tables, views, and columns. Follow these naming conventions:3 A name must be from 1 to 128 characters long.3 A name must begin with a letter (A through Z), diacritic marks, or non-Latincharacters (200-377 octal).3 A name cannot begin with an underscore (_). Leading underscores are reserved <strong>for</strong>system objects.3 Names are not case sensitive. For example, CUSTOMER and Customer are the same,but object names are converted to lowercase when they are stored in the Netezzadatabase. However, if you enclose a name in quotation marks, it is case sensitive.3 A name cannot be a Netezza reserved word, such as WHERE or VIEW.3 A name cannot be the same as another Netezza object that has the same type.For more in<strong>for</strong>mation, see your Netezza Database User’s Guide.Data Types <strong>for</strong> NetezzaOverviewEvery column in a table has a name and a data type. The data type tells Netezzahow much physical storage to set aside <strong>for</strong> the column and the <strong>for</strong>m in which the datais stored. This section includes in<strong>for</strong>mation about Netezza data types, null and defaultvalues, and data conversions.For more in<strong>for</strong>mation about Netezza data types and to determine which data typesare available <strong>for</strong> your version of Netezza, see your Netezza Database User’s Guide.<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Netezza does not directly support TIMETZ or INTERVALtypes. Any columns using these types are read into <strong>SAS</strong> as character strings.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!