Ocenite etot tekst:


D SQL Format operatorov  リ  E2 str. po D86E strokD  リ EfajlD  hsql  E
DOpredeleniyaE    CREATE, DROP, DATABASE, ALTER, RENAME         
DManipulyaciiE    DELETE, INSERT, UPDATE, LOAD/UNLOAD           
               SELECT and UNION statements.                  
DDostupaE        GRANT/REVOKE, LOCK/UNLOCK, SET LOCK MODE      
DVosstanovleniyaE Transaction, Audit trail                      
DProchieE         CHECK, REPAIR, INFO, OUTPUT, SET EXPLAIN      
ン寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃寃
DメルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルモE
DリDefinition     CREATE, DROP, DATABASE, ALTER, RENAME       リE
DリE  Operatory opredeleniya dannyh ne otkatyvayutsya             DリE
DャルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルヤE
DCREATE DATABASEE database [WITH LOG IN "pathname" [MODE ANSI]]

DDROP DATABASEE database-name       standart  ansi = trebuet
                        imya vladel'ca, tranzakciya po umolchniyu

DDATABASEE database-name [EXCLUSIVE]      sdelat' tekushchej
DCLOSE DATABASEE

DCREATEE [TEMP] DTABLEE table-name ( column-name datatype [NOT NULL]
                         [UNIQUE [CONSTRAINT constr-name]][,...] )
        [UNIQUE(uniq-col-list) [CONSTRAINT constr-name]][,..]
        [WITH NO LOG]
        [IN "pathname-directory"]

                DATA TYPES
    INTEGER     SERIAL[(n0)] - avtomaticheskij schetchik
    SMALLINT    CHAR(n)        DATE
    FLOAT       DECIMAL(m,n)   DATETIME qualif1 TO qualif2
    REAL        MONEY(m,n)     INTERVAL qualif1 TO qualif2
gde qualifier ィ {YEAR,MONTH,DAY,HOUR,MINUTE,SECOND,FRACTION(n)}

DALTER TABLEE table-name
     {  ADD ( new-column-name datatype [NOT NULL]
                [UNIQUE [CONSTRAINT constr-name]][,...] )
        |           [BEFORE old-column-name]
        DROP (old-column-name[,...])
        |
        MODIFY (old-column-name new-datatype [NOT NULL][,...])
        |
        ADD CONSTRAINT UNIQUE (old-column-name[,...])
        |                          [CONSTRAINT constr-name]
        DROP CONSTRAINT (constr-name[,...])      } [,...]

DCREATE VIEWE view-name [(column-list)]
        AS SELECT-statement [WITH CHECK OPTION]

DCREATEE [UNIQUE|DISTINCT] [CLUSTER] DINDEXE index-name
        ON table-name (column-name [DESC], ...)

DALTER INDEXE index-name TO [NOT] CLUSTER  Ctroki v poryadke indeksa

CREATE SCHEMA AUTHORIZATION username {create and/or grant statements}
   Primechanie:  podcherknutye operatory nel'zya ispol'zovat' v 4GL  
DCREATE SYNONYME synonym-name FOR table-name

DDROP INDEXE index-name
DDROP SYNONYME synonym-name
DDROP TABLEE table-name
DDROP VIEWE view-name

DRENAME TABLEE old-table-name TO new-table-name
DRENAME COLUMNE table.old-column-name TO new-column-name

DメルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルモE
Dリ  Manipulation  DELETE, INSERT, UPDATE, LOAD, UNLOAD       リE
DャルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルヤE
DDELETE FROME table-name [WHERE condition]

DINSERT INTOE table-name [(column-list)]
      { VALUES (value-list) |  SELECT-statement }

DUPDATEE table-name DSETE {column-name ={ expression | (SELECT-st) } [,...]   |
 {(col-list) | [table.]*} =
 { ({ expr-list | (SELECT-st) } [,...]) | record-name.* }
     [WHERE  condition]

DLOAD FROME "file" [DELIMITER "?"] INSERT INTO table [(col-list)]
DUNLOAD TOE "file" [DELIMITER "?"] SELECT-statementDメルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルモE
Dリ    Select        The SELECT and UNION statements.         リE
DャルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルヤE
DSELECTE [UNIQUE] select-list
        [FROM { [OUTER] tabname [tab-alias] |
           OUTER (table-expr) } [,...]  ]
        [WHERE condition]
        [GROUP BY column-list] [HAVING condition]
        [ORDER BY column-name [DESC],...]
        [INTO TEMP table-name]

SELECT-statement UNION [ALL] SELECT-statement  [. . .]

     WHERE conditions:

  svyazannye logicheskimi operatorami OR, AND, NOT sravneniya

        expr rel-op expr        gde rel-op iz  >,<,>=,<=,<>,!=
        column-name IS [NOT] NULL
        expr [NOT] BETWEEN ... AND ...
        expr [NOT] IN (.. , ..  [, ...] )

                                   po umolchaniyu "\"
        string [NOT] LIKE "shablon" [ESCAPE "escape-char"]
         specsimvoly shablona  D%E D_E  oznachayut ヲ ァ!
        string [NOT] MATCHES "shablon" [ESCAPE "esc-char"]
         specsimvoly shablona  D*E D?E D[EabHD]E D[^EdD-EzD]E  oznachayut ヲ ァ! ィ ゥ

        expr rel-op {ALL | [ANY | SOME]} (SELECT-statement)
        expr [NOT] IN (SELECT-statement) !* Obyknovennyj *!
        [NOT] EXISTS  (SELECT-statement) !*  SQLevskij   *!

DメルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルモE
DリAccess         GRANT/REVOKE, LOCK/UNLOCK,  SET LOCK MODE  リE
DャルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルヤE
       {DBpriv         {PUBLIC  pravo davat' prava
DGRANTE   |            TO |       [WITH GRANT OPTION] [AS grantor]
     TBpriv ON table}   user-list}                 ot chuzhogo  imeni

        {DBpriv            {PUBLIC
DREVOKEE   |             FROM |
      TBpriv ON table}     user-list}
                                             TABLE PRIVILEGES:
    DATABASE PRIVILEGES:                  ALTER           DELETE
                                          INDEX           INSERT
        CONNECT                               SELECT[(cols)]
        RESOURCE                              UPDATE [(cols)]
        DBA                                   ALL [PRIVILEGES]

DSET LOCK MODEE TO [NOT] WAIT     zhdat' /ne zhdat' osvobozhdeniya
DLOCK TABLEE table-name IN   {SHARE | EXCLUSIVE} MODE
DUNLOCK TABLEE table-name  {Mozhno smotret' | Nichego nel'zya }

DメルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルモE
D唔ntegrity      Transaction, Audit trail                    リE
DャルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルヤE
        Provodit' tranzakciyu s novym LOG fajlom
DSTART  DATABASEE database  WITH LOG IN "/pathname" [MODE ANSI]

DDATABASEE database-name [EXCLUSIVE]
DROLLFORWARD DATABASEE database-name      Vosstanovit' bazu
DCLOSE DATABASEE                           iz backup-kopii

DBEGIN WORKE      Nachalo tranzakcii       Vnimanie, vse izmenennye
 . . .                                     stroki lokiruyutsya!!
DCOMMIT WORKE     Konec tranzakcii
DROLLBACK WORKE   Otkatit' izmeneniya k predydushchemu COMMIT

DCREATE AUDITE FOR table-name IN "pathname"
   . . .
DRECOVER TABLEE table-name                Vosstanovit' tablicu
DDROP   AUDITE FOR table-name

DメルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルモE
DリAuxiliary      CHECK, REPAIR, INFO, OUTPUT, SET EXPLAINリE
DャルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルルヤE
CHECK  TABLE table-name                 Proverit' indeksy
REPAIR TABLE table-name                 Remont indeksov
   Primechanie:  podcherknutye operatory nel'zya ispol'zovat' v 4GL  
INFO {TABLES | COLUMNS FOR table-name
        | INDEXES FOR table-name | STATUS FOR table-name
        | {ACCESS | PRIVILEGES} FOR table-name}

DUPDATE STATISTICSE [FOR TABLE table-name]     sistemnom kataloge

DSET EXPLAINE {ON | OFF}          Vklyuchit' sistemnye ob`yasneniya

Last-modified: Thu, 12 Feb 1998 08:48:47 GMT
Ocenite etot tekst: