23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

column_name data_type<br />

COLLATE<br />

CREATE TABLE<br />

Names a column and associates a data type with it. The column names specified must<br />

be different from other column names in the table definition. The data_type must be<br />

supported by OpenEdge. For more information on supported datatypes, see the<br />

“OpenEdge <strong>SQL</strong> Language Elements” section on page 189.<br />

When a table contains more than one column, a comma separator is required after<br />

each column_definition except for the final column_definition.<br />

Indicates the column’s case sensitivity. Note the default is case_sensitive.<br />

case_insensitive<br />

Indicates the column will be case insensitive. The word case_insensitive itself<br />

cannot be used as a valid input. The value for the case_insensitive clause here can<br />

only be _I, I, or the default database collation with the suffix _I (for example:<br />

COLLATE_I, COLLATE I, or COLLATE BASIC_I).<br />

case_sensitive<br />

DEFAULT<br />

Indicates the column will be case sensitive. The word case_sensitive itself cannot<br />

be used as a valid input. The value for the case_sensitive clause here can only be<br />

_S, S, or the default database collation with the suffix _S (for example: COLLATE_S,<br />

COLLATE S, or COLLATE BASIC_S).<br />

Specifies an explicit default value for a column. The column takes on the value if an<br />

INSERT statement does not include a value for the column. If a column definition<br />

omits the DEFAULT clause, the default value is NULL.<br />

The DEFAULT clause accepts the arguments shown in the following table:<br />

literal An integer, numeric, or string constant.<br />

NULL A null value.<br />

SYSDATE The current date. Valid only for columns defined with DATE<br />

data types. SYSDATE is equivalent to the Progress default<br />

keyword TODAY.<br />

SYSTIME The current time. A TIME value.<br />

SYSTIMESTAMP The current date and time. A TIMESTAMP value.<br />

column_constraint<br />

Specifies a constraint that will be applied while inserting or updating a value in the<br />

associated column.<br />

21

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

Saved successfully!

Ooh no, something went wrong!