Administration Guide
Database objects include the following:
- Schemas
- Tables
- Views
- Columns
- Indexes
- User-defined functions (UDFs)
- User-defined types (UDTs)
- Triggers
- Aliases
- Table spaces
- Stored procedures
- Methods
- Nodegroups
- Buffer pools
- Event monitors.
When naming database objects, the name you specify:
- Can contain 1 to 18 characters (bytes)
Note: | There are exceptions:
- Schemas and columns allow 1 to 30 characters
- Tables, views, correlation names, and alias names allow 1 to 128
characters.
|
- Must begin with one of the following:
- A through Z (converts lowercase letters to uppercase)
- A valid accented letter (such as ö)
- A multibyte character, except multibyte spaces (for multibyte
environments)
- Can include:
- A through Z (converts lowercase letters to uppercase)
- A valid accented letter (such as ö)
- 0 through 9
- @, #, $, and _ (underscore)
- Multibyte characters, except multibyte spaces (for multibyte environments)
Keywords can be used. If the keyword is used in a context where it
could also be interpreted as an SQL keyword, it must be specified as a
delimited identifier. Refer to the SQL
Reference for information on delimited identifiers.
For maximum portability, use the IBM SQL and ISO/ANSI SQL92 reserved
words. For a list of these words, refer to the SQL
Reference.
Notes:
- Using delimited identifiers, it is possible to create an object that
violates these naming rules; however, subsequent use could lead to error
situations. To avoid potential problems with the use and operation of
your database, do not violate the above rules.
For example, if you create a column with a + or a - sign
included in the name, and you subsequently use that column in an index, you
will experience problems when you attempt to reorganize the table.
- For information about National Language Support (NLS) related to object
names, see Appendix J, National Language Support (NLS).
[ Top of Page | Previous Page | Next Page ]