blob: f887fc2568566d2053b9dc11f5adb6de0d7c1b2f [file] [log] [blame]
<html lang=en>
<head>
<meta name="Generated by Rational Rose model" content="C:\Aurora_Oct20\RSM\eclipse\workspace-cascadeplus\org.eclipse.wst.rdb.models.dbdefinition\src\model\DatabaseDefinitionModel.mdl">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Description" content="4.13 Columns, fields, and attributes The terms column, field, and attribute refer to structural components of tables, row types, and structured types, respectively, in analogous fashion. As the structure of a table consists of one or more columns, so does the structure of a row type consist of one or more fields and that of a structured type one or more attributes. Every structural element, whether a column, a field, or an attribute, is primarily a name paired with a declared type. The elements of a structure are ordered. Elements in different positions in the same structure can have the same declared type but not the same name. Although the elements of a structure are distinguished from each other by name, in some circumstances the compatibility of two structures (for the purpose at hand) is determined solely by considering the declared types of each pair of elements at the same ordinal position. A table (see Subclause 4.14, Tables ) is defined on one or more columns and consists of zero or more rows. A column has a name and a declared type. Each row in a table has exactly one value for each column. Each value in a row is a value in the declared type of the column. NOTE 21 - The declared type includes the null value and values in proper subtypes of the declared type. Every column has a nullability characteristic that indicates whether the value from that column can be the null value. The possible values of nullability characteristic are known not nullable and possibly nullable. A column C of a base table T has a nullability characteristic that is known not nullable if and only if at least one of the following is true: - There exists at least one constraint NNC that is not deferrable and that simply contains a search condition that is a boolean value expression that is a known-not-null condition for C. - C is based on a domain that has a domain constraint that is not deferrable and that simply contains a search condition that is a boolean value expression that is a known-not-null condition for VALUE . - C is a unique column of a nondeferrable unique constraint that is a PRIMARY KEY. Concepts 45 - The SQL-implementation is able to deduce that the value of C can never be null through some additional implementation-defined rule or rules. A column C of a derived table is known not nullable, according to the Syntax Rules of Subclause 7.7, joined table , Subclause 7.12, query specification , and Subclause 7.13, query expression . Otherwise, a column C is possibly nullable. A column, field, or attribute may be defined with a data type that is a reference type. For such a column, field, or attribute, if the reference type specifies a scope clause , then the user may specify whether reference values shall be checked. If the user has specified that reference values shall be checked, then: - Whenever the value of the column, field, or attribute is changed, the new value of the column, field, or attribute shall reference a row of the table referenced by the table name in the scope clause of the reference type. - The column, field, or attribute definition may specify that, whenever a row is deleted from one of the tables in the scope clause , either the value of the (referencing) column, field, or attribute is set to the null value, or that such deletions are prohibited; in the latter case, attempts to perform such deletions result in the raising of an exception condition: constraint violation. A column C is described by a column descriptor. A column descriptor includes: - The name of the column. - Whether the name of the column is an implementation-dependent name. - If the column is based on a domain, then the name of that domain; otherwise, the data type descriptor of the declared type of C. - The value of default option , if any, of C. - The nullability characteristic of C. - The ordinal position of C within the table that contains it. - An indication of whether C is a self-referencing column of a base table or not. - If the declared type of C is a reference type, then an indication of whether references are to be checked, and the reference scope check action , if specified or implied. - An indication of whether C is an identity column or not. - If C is an identity column, then an indication of whether values are always generated or generated by default. - If C is an identity column, then the start value of C. - If C is an identity column, then the descriptor of the internal sequence generator for C. NOTE 22 - Identity columns and the meaning of start value are described in Subclause 4.14.4, Identity columns . - If C is a generated column, then the generation expression of C. NOTE 23 - Generated columns and the meaning of generation expression are described in Subclause 4.14.5, Base columns and generated columns . An attribute A is described by an attribute descriptor. An attribute descriptor includes: - The name of the attribute. - The data type descriptor of the declared type of A. - The ordinal position of A within the structured type that contains it. - The value of the implicit or explicit attribute default of A. - If the data type of the attribute is a reference type, then an indication of whether reference values shall be checked, and the reference scope check action , if specified or implied. - The name of the structured type defined by the user-defined type definition that defines A. A field F is described by a field descriptor. A field descriptor includes: - The name of the field. - The data type descriptor of the declared type of F. - The ordinal position of F within the row type that simply contains it. - If the data type of the field is a reference type, then an indication of whether reference values shall be checked, and the reference scope check action , if specified or implied.">
<meta name="KeyWords" content="Column,Class Diagram Column,DatabaseDefinitionModel,model DatabaseDefinitionModel,">
<a href="../../../root.html" target=_top><IMG SRC="../../../webviewer/home.gif"BORDER=0></a>
</head>
<body bgcolor = "#FFFFFF">
<p><font FACE="Arial, Geneva" SIZE=3><b>Class&nbsp;Diagram:&nbsp;Tables&nbsp;/&nbsp;Column</b></font></p>
<MAP NAME="mymap">
<AREA Shape="Polygon" coords = "189,684,189,778,384,778,384,684" HREF="../cat3f27d66b01ab/class3ea40dbd02b7.htm">
<AREA Shape="Polygon" coords = "452,630,452,786,619,786,619,630" HREF="../cat3f27d66b01ab/class3ed6717c0130.htm">
<AREA Shape="Polygon" coords = "151,507,151,658,382,658,382,507" HREF="../cat3f27d66b01ab/class3ea3f30101d3.htm">
<AREA Shape="Polygon" coords = "480,522,480,595,618,595,618,522" HREF="../cat3f27d6790133/class3f4d273d00a9.htm">
<AREA Shape="Polygon" coords = "213,220,213,337,583,337,583,220" HREF="class3e9b2aff0392.htm">
<AREA Shape="Polygon" coords = "273,507,273,337,280,337,280,507" HREF="../../../looseends/ass3edf921303ad.htm">
<AREA Shape="Polygon" coords = "537,337,537,521,529,521,529,337" HREF="../../../looseends/ass3ea412a40286.htm">
<AREA Shape="Polygon" coords = "335,39,335,129,452,129,452,39" HREF="../cat3f27d66b01ab/class3fa6a8930071.htm">
<AREA Shape="Polygon" coords = "392,219,392,129,399,129,399,219" HREF="inh3fa6a8c500eb.htm">
</MAP>
<IMG SRC="dgm3ea40ecd0393.png" USEMAP="#mymap" BORDER=0>
</body>
</html>