home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / makeview.zip / TABLES.DAT < prev   
Text File  |  1995-03-10  |  3KB  |  75 lines

  1. /****************************************************************
  2.     This file describes the system tables for SQL/DS systems that
  3.     are required by VX-REXX.
  4. ****************************************************************/
  5.    
  6. /*  SYSTABLES: List the tables in the database.
  7.     creator     - qualifier of table or view CHAR(8)
  8.     name        - name of the table or view VARCHAR(18)
  9.     type        - T = table, V = view CHAR(1)
  10.     remarks     - user comment (optional) VARCHAR(254)
  11. */
  12. systables.col.creator = "CREATOR"
  13. systables.col.name = "TNAME"
  14. systables.col.type = "TABLETYPE"
  15. systables.col.remarks = "REMARKS"
  16. systables.table = "SYSCATALOG"
  17.  
  18. /*  SYSCOLUMNS: List all columns in the database.
  19.     tbcreator   - qualifier of table or view CHAR(8)
  20.     tbname      - name of the table or view what contains column VARCHAR(18)
  21.     name        - column name VARCHAR(18)
  22.     remarks     - user comment (optional) VARCHAR(254)
  23.     coltype     - data type of column CHAR(8)
  24.     length      - length of column SMALLINT
  25.     scale       - scale for decimals SMALLINT
  26.     nulls       - Y=null allowed, N=not null, D=not null with default CHAR(1)
  27.     colno       - column ordinal SMALLINT
  28.     keyseq      - ordinality within primary key SMALLINT
  29. */
  30. syscolumns.col.tbcreator = "CREATOR"
  31. syscolumns.col.tbname = "TNAME"
  32. syscolumns.col.name = "CNAME"
  33. syscolumns.col.remarks = "REMARKS"
  34. syscolumns.col.coltype = "COLTYPE"
  35. syscolumns.col.length = "SYSLENGTH" /* will not work for decimals */
  36. syscolumns.col.scale = "0"
  37. syscolumns.col.nulls = "NULLS"
  38. syscolumns.col.colno = "COLNO"
  39. syscolumns.col.keyseq = "0"
  40. syscolumns.table = "SYSCOLUMNS"
  41.  
  42. /*  SYSRELS: List database table relationships.
  43.     creator     - qualifier of dependent table
  44.     tbname      - name of dependent table
  45.     reftbcreator- qualifier of the parent table CHAR(8)
  46.     reftbname   - name of the parent table VARCHAR(18)
  47.     relname     - name of relationship CHAR(8)
  48.     fkcolnames  - list of foreign key column names VARCHAR(320)
  49.     pkcolnames  - list of primary key column names VARCHAR(320)
  50. */
  51. sysrels.col.creator = "'_X_'"
  52. sysrels.col.tbname = "'_X_'"
  53. sysrels.col.reftbcreator = "'_X_'"
  54. sysrels.col.reftbname = "'_X_'"
  55. sysrels.col.rename = "'_X_'"
  56. sysrels.col.fkcolnames = "'_X_'"
  57. sysrels.col.pkcolnames = "'_X_'"
  58. sysrels.table = "SYSCOLUMNS"
  59.  
  60. /*  SYSINDEXES: List all indexes in the database.
  61.     creator     - qualifier of the index CHAR(8)
  62.     name        - name of the index VARCHAR(18)
  63.     colnames    - list of column names VARCHAR(320)
  64.     uniquerule  - D=duplicates ok, U=unique, P=primary key CHAR(1)
  65.     tbcreator   - qualifier of the table on which the index is defined CHAR(8)
  66.     tbname      - name of the table on which the index is defined VARCHAR(18)
  67. */
  68. sysindexes.col.creator = "'_X_'"
  69. sysindexes.col.name = "'_X_'"
  70. sysindexes.col.colnames = "'_X_'"
  71. sysindexes.col.uniquerule = "'_X_'"
  72. sysindexes.col.tbcreator = "'_X_'"
  73. sysindexes.col.tbname = "'_X_'"
  74. sysindexes.table = "SYSCOLUMNS"
  75.