SQL$HELP72.HLB  —  DATATRIEVE
    Optional SQL and DATATRIEVE formatting clauses allow you to
    modify data displays or query characteristics for interactive SQL
    users, DATATRIEVE users, or both. The optional formatting clauses
    (QUERY NAME and EDIT STRING) and DATATRIEVE clauses (QUERY HEADER
    and DEFAULT VALUE) can be used with the following statements:

    o  CREATE TABLE

    o  CREATE DOMAIN

    o  CREATE VIEW

    o  ALTER TABLE

    o  ALTER DOMAIN

    The following diagram shows the format for these clauses:

  (B)0sql-and-dtr-clause =                                             
                                                                   
  qwq> QUERY HEADER IS qw> <quoted-string> wqqqqqqqqqqqqqqqqqqqwq> 
   x                    mqqqqqq / <qqqqqqqqj                   x   
   tq> EDIT STRING IS <quoted-string> qqqqqqqqqqqqqqqqqqqqqqqqqu   
   x                                                           x   
   tq> QUERY NAME FOR qwq> DTR qqqqqqqqwq> IS <quoted-string> qu   
   x                   mq> DATATRIEVE qj                       x   
   mq> DEFAULT VALUE FOR qwq> DTR qqqqqqqqwq> IS literal   qqqqj  
                          mq> DATATRIEVE qj                        
                                                                   

    o  A query header specifies a string, enclosed in quotation
       marks, that interactive SQL or DATATRIEVE displays in place
       of the column name when it retrieves values from a column.
       Query headers allow you to specify descriptive headings for
       columns.

       Both interactive SQL and DATATRIEVE display any query headers
       you specify in SQL definitions.

    o  An edit string specifies a string, enclosed in quotation
       marks, that controls how interactive SQL or DATATRIEVE formats
       the display of values in a column.

       Both interactive SQL and DATATRIEVE use edit strings you
       specify in SQL definitions to control display formatting for
       those definitions.

       DATATRIEVE recognizes columns with null values and displays
       them according to the edit string for the missing value.

    o  A query name specifies a string, enclosed in quotation marks,
       that you can use instead of the column name when formulating
       DATATRIEVE queries. Query names are useful for abbreviating
       long column names in DATATRIEVE queries.

       SQL does not recognize query names in interactive queries; the
       QUERY NAME clause is useful only when you use DATATRIEVE to
       retrieve the data.

    o  If you specify a default value for a column and do not specify
       that column in a DATATRIEVE STORE or MODIFY statement,
       DATATRIEVE stores the default value specified in the SQL
       definition.

       SQL does not recognize default values in INSERT or UPDATE
       statements; the DEFAULT VALUE clause is useful only when you
       use DATATRIEVE STORE or MODIFY statements.
Additional Information: explode extract
QUERY HEADER Clause EDIT STRING Clause
Close Help