home *** CD-ROM | disk | FTP | other *** search
/ Internet Pratica / IPRAT_01.iso / SQL / advanced / aqt3.CAB / readme.cfg < prev    next >
Text File  |  2002-01-24  |  24KB  |  419 lines

  1. '*********************************************************************
  2. ' This an annotated version of an (old) copy of the db2udb.cfg file.
  3. ' Full explanation of the entries is given.
  4. '*********************************************************************
  5.  
  6.  
  7. '******************************************************************
  8. ' The menu1 statement controls the displaying of the first menu.
  9. ' The determines what gets displayed in the first grid.
  10. ' This will generally be table schema names etc.
  11. ' menu1;title
  12. '    menu1 - must be coded
  13. '    title - title of the menu
  14. ' A number of lines follow this
  15. ' title;query;menus;type;
  16. '    title - title of entry in menu list
  17. '    query - the number of the query to run when this item is
  18. '            selected. This must be one of the queries in the
  19. '            query section. This will populate the first grid.
  20. '    menus - controls which version of the menu2 and menu3 menus
  21. '            are to be displayed.
  22. '    type - a code to indicate what type of data is displayed in the middle grid. 
  23. '           This determines what icon is used when displaying an object.
  24. '           In addition some values will activate particular features in AQT.
  25. '           The values used are:
  26. '           T (table),               V (view),        S (synonym/alias),  
  27. '           P (package),             U (user),        R (role),
  28. '           I (index),               A (tablespace),  B (procedure),
  29. '           G (trigger),             L (plan),        F (function),
  30. '           O (unknown),             D (default),     M (domain),
  31. '           N (bufferpool),          H (column),      E (login),
  32. '           J (AS400 physical),      K (AS400 logical), W (nodegroup),
  33. '           O (group)
  34. '           Z (table,view,synonym depending on the value in second column),
  35. '           C (table,view,synonym but don't know which)    
  36. '    schema - indicates whether the data being displayed has a
  37. '             schema / creator  / owner associated with it. By
  38. '             default this is Y. Change to N for object types such
  39. '             as tablespaces, user etc.
  40. '             When schema is N, the second parm (query) is not used
  41. '             but must be a valid query number.
  42. '******************************************************************
  43.  
  44. menu1;&Show;
  45. &Tables and Views;1;1;Z;Y;
  46. Tables &only;2;2;T;Y;
  47. &Views only;9;9;V;
  48. &Packages;3;3;X;X;
  49. T&riggers;4;4;X;X;
  50. Table&spaces;1;5;X;N;     ' note: second parm not used when 5th is N
  51. &Indexes;6;6;X;
  52. &Authorities;1;7;X;N;
  53.  
  54. '******************************************************************
  55. ' The menu2 statement controls the displaying of the middle menu,
  56. ' which in turn determines what gets displayed in the middle grid.
  57. '
  58. ' In most cases, there is only a single way in which the data in
  59. ' the middle grid is displayed. In this case there will only be a 
  60. ' single menu2 entry. In this case the middle menu will not be
  61. ' displayed.
  62. '
  63. ' menu2;desc
  64. '    menu2 - must be coded
  65. '    desc - title of the menu
  66. ' A number of lines follow this
  67. ' title;query;
  68. '       title - title of entry in menu list
  69. '       query - query to be run 
  70. '******************************************************************
  71. menu2;1;&Table List;
  72. &Description;10;
  73.  
  74. menu2;2;&Table List;
  75. &Description;31;
  76. &Sizing;38;
  77.  
  78. menu2;3;&Package List;
  79. &Description;32;
  80.  
  81. menu2;4;&Trigger List;
  82. &Description;33;
  83.  
  84. menu2;5;&Tablespace List;
  85. &Description;40;
  86.  
  87. menu2;6;&Index List;
  88. &Description;42;
  89.  
  90. menu2;7;&User List;
  91. &Description;7;
  92.  
  93. menu2;9;View &List;
  94. Description;49;
  95.  
  96. '******************************************************************
  97. ' The menu3 statement controls the displaying of the third menu.
  98. ' The determines what gets displayed when the user clicks on the
  99. ' middle grid. This will generally be to display information
  100. ' about the table.
  101. ' menu3;version;title
  102. '    menu3 - must be coded
  103. '    version - this is version of the menu3 menu described here
  104. '              This must match ?????
  105. '    title - title of the menu
  106. ' A number of lines follow this
  107. ' entrynum;title;query;menu4;
  108. '    title - title of entry in menu list
  109. '    query - the number of the query to run when this item is
  110. '            selected. This must be one of the queries in the
  111. '            query section. The query will be passed two parameters
  112. '            - the selections from grid1 and grid2.
  113. '    menu4 - indicates which data will be displayed as a popup menu
  114. '           when the user right-clicks on the right grid. 
  115. '           The values here correspond to what is coded in the menu4 statements.
  116. '******************************************************************
  117. menu3;1;Table/View &Info;
  118. &Columns;20;
  119. Column &sizing info;39;
  120. -;1;
  121. &Full Detail;11;
  122. &Indexes;12;
  123. &Access List;15;7;
  124. -;1;
  125. &Table Contents;34;
  126. -;1;
  127. Dependent &Packages;14;3;
  128. &Views on Object;16;4;
  129. &Objects in View;13;2;
  130. -;1;
  131. V&iew Definition;17;
  132. View Definition (&formatted);48;
  133. -;1;
  134. T&riggers on table;26;5;
  135. Tri&ggers involving table;27;5;
  136. -;1;
  137. &Parent Tables;35;1;
  138. &Child Tables;36;1;
  139.  
  140. menu3;2;&Table Info;
  141. &Columns;20;
  142. Column &sizing info;39;
  143. -;1;
  144. &Full Detail;11;
  145. &Indexes;12;
  146. &Access List;15;7;
  147. -;1;
  148. &Table Contents;34;
  149. -;1;
  150. Dependent &Packages;14;3;
  151. &Views on Object;16;4;
  152. -;1;
  153. T&riggers on table;26;5;
  154. Tri&ggers involving table;27;5;
  155. -;1;
  156. &Parent Tables;35;1;
  157. &Child Tables;36;1;
  158.  
  159. menu3;3;&Package Info;
  160. &Package Detail;21;
  161. &Objects used by package;22;2;
  162. &Statements;23;
  163. &Access List;24;7;
  164.  
  165. menu3;4;&Trigger Info;
  166. &Trigger Details;25;
  167. &Dependent objects;37;2;
  168.  
  169. menu3;5;&Tablespace Info;
  170. &Tables in Tablespace;44;1;
  171. Tablespace &Details;41;
  172.  
  173. menu3;6;&Index Info;
  174. &Index Details;43;
  175.  
  176. menu3;7;&User Authorities;
  177. &Table Authorities;45;6;
  178. &Table Authorities (with Grantor);50;6;
  179. &Package Authorities;46;3;
  180. &Schema Authorities;78;
  181. &Database Authorities;47;
  182.  
  183. menu3;9;View &Info;
  184. &Columns;20;
  185. -;1;
  186. &Full Detail;11;
  187. &Access List;15;
  188. -;1;
  189. Contents of &View;34;
  190. -;1;
  191. Dependent &Packages;14;
  192. &Views on View;16;
  193. &Objects in View;13;
  194. -;1;
  195. V&iew Definition;17;
  196. View Definition (&formatted);48;
  197.  
  198.  
  199. '******************************************************************
  200. ' The menu4 statement controls the displaying of the popup menu
  201. ' which gets displayed when the user right-clicks on the right grid.
  202. '
  203. ' This gets activated when then menu3 statement has a value for the
  204. ' third parameter. This value determines which of the menu4 menus will
  205. ' be displayed as the popup menu.
  206. ' To further complicate it, the menus may need to be context sensitive.
  207. ' In other words, one may want different popup menus depending on the
  208. ' value of a cell in the right grid. One example of this is when displaying
  209. ' objects dependent on a package. This could be either a table, view or index.
  210. ' One would want a different popup menu in each of these circumstances.
  211. ' To cope with this, one can have multiple versions of a popup menu - with a
  212. ' "condition" on a grid-column coded. The example below shows this more clearly.
  213. '
  214. ' menu4;version;menunum;type;col;val
  215. '    menu4   - must be coded
  216. '    set     - this is version of the menu4 menu described here
  217. '              This must match the third parameter coded in the menu3 entry.
  218. '    menunum - which menu3 menu to be displayed.
  219. '              Menunum can sometimes be followed by a one-byte flag (* or @).
  220. '              This is described later.
  221. '    type    - The type of the object displayed. Governs what icon will be shown with it.
  222. '              Takes the same values as listed in the description of menu1.  
  223. '    col;val - display this menu when grid column col has value val.
  224. '              col;val are not coded if no condition is to be applied.
  225. '              col is often 3 as columns in the right grid are often schema,entry,type
  226. '
  227. '    The actual menus to be displayed in the popup are given by the menu3 stmt1
  228. '    (in other words we use the same menus as the menu3 menus).
  229. '
  230. ' Confused? Here is an example:
  231. '  menu3;1;Table/View Info;
  232. '  Parent Tables;35;1;
  233. '  Objects in View;13;2
  234. '
  235. '  menu4;1;1;
  236. '  menu4;2;1;3;Table;
  237. '  menu4;2;2;3;View;
  238. '
  239. '  Parent Tables specifies menu4 set 1. There is only one entry for this.
  240. '  A right-mouse click on grid3 will display the set 1 of menu3.
  241. '  Objects in view specifies menu4 set 2. There are two entries here:
  242. '  - when column 3 (of the row of grid 3 selected) is "Table" then set 1 of
  243. '    menu3 is displayed.
  244. '  - when column 3 is "Table" then set 2 of menu3 is displayed.
  245. '
  246. ' The flag following the menunum entry is used to indicate some special
  247. ' circumstanced:
  248. ' * - the title of the entry is to be formed by only the first parameter
  249. '     passed to it. Used only when displaying userids.
  250. ' @ - the title of the entry is to be formed by only the second parameter
  251. '     passed to it. Used only when displaying procedure sections.
  252. '*************************************************************************
  253. ' menu4;1    Tables
  254. ' menu4;2    Objects
  255. ' menu4;3    Packages
  256. ' menu4;4    Views
  257. ' menu4;5    Triggers
  258. ' menu4;6    Table or View
  259. ' menu4;7    User
  260. '******************************************************************
  261. menu4;1;2;Z;
  262. menu4;2;2;T;3;T;
  263. menu4;2;9;V;3;V;
  264. menu4;2;6;I;3;I;
  265. menu4;3;3;P;
  266. menu4;4;9;V;
  267. menu4;5;4;G;
  268. menu4;6;1;T;
  269. menu4;7;7;U;
  270.  
  271. '***********************************************************************************************
  272. ' The queries section shows the actual queries used.
  273. ' The format is:
  274. ' query;type;title;query;col-title;col-width;
  275. ' (col-title and col-width repeat for as many columns in the query)
  276. ' querynum   is the number of the query
  277. ' type       described later
  278. ' title      title of the query 
  279. ' query      is the text of the query
  280. ' col-title  header of the grid column which displays the column  
  281. ' col-width  width of the grid column which displays the column 
  282. '
  283. ' type is followed by an optional parameter parm-type. Described later.
  284. '
  285. ' The query has substitutional paramters ? which must correspond to 
  286. ' the expected number. 
  287. ' - queries populating the left grid do not require a parameter
  288. ' - queries populating the middle grid require one parameter. What
  289. '   gets substitued here is the value of the left grid selected by the user.
  290. ' - queries populating the right grid require two parameters. What
  291. '   gets substitued here are the values selected in the left and middle grids.
  292. '  (the exception to this are:
  293. '       when Schema in menu1 is "N", so one parameter less is required
  294. '       "hidden" values are used.) 
  295. '
  296. ' type specifies how the results of the query are to be displayed.
  297. ' type is also used to mark some critical queries which the system must know about.
  298. ' m - (this is the normal value) display in a multi-row grid
  299. ' s - display a single row (as a grid of column name / column value)
  300. ' t - as with s, but the grid rows widen to accomodate large columns
  301. ' v - display a formatted-view
  302. ' w - display a view in a single grid cell (the same as X but need separate letter for this)
  303. ' q - display a view in the GUI query builder
  304. ' x - display a single value; may need to retrieve mult rows from dbs and concatenate. 
  305. ' d - display table (as per select * from table). 
  306. ' o - use native ODBC calls for the query. Which call to use is given by the query
  307. '     text - C (col list), P (primary key), other - get table list.
  308. '
  309. ' In addition, a number of important queries are marked. Each of these should only appear
  310. ' once. It is mandatory for there to be a "a" and "c" query, the others are optional.
  311. ' c - columns for a table/view. This MUST return columns in the order:
  312. '     colname, type, length, scale, nulls,description,colno,default.
  313. '     You cannot change the order of these columns otherwise the system will seriously misbehave.
  314. ' e - (optional) columns for a table/view to be used when querying second system (for compare function).
  315. '     If query c works on second system this option is not needed. However if c uses table
  316. '     ids (not creator, table name) as parameters then query c will not work on the second
  317. '     system. So for this case you must code another query (e) which does work against this.
  318. ' a - access list for user. This is required for the security helper to operate.
  319. '     This forms the basis of the "Grant Access To" grid and supplies the name
  320. '     of the access rights to be granted. 
  321. '     This query returns the following columns: schema,table,auth1....auth8.
  322. '     auth1 to auth8 are up to 8 table authorities which this system can deal with.
  323. '     The col-titles for these authorities MUST be the name by which these authorities
  324. '     are Granted. These names will appear on the Mask check-boxes, and will be used
  325. '     to construct the Grant and Revoke statements.    
  326. '     For Oracle, the results of the query are taken and massaged into the access grid.
  327. ' b - alternate access list, but including the grantor name. 
  328. '     Used by "Show -> Existing authorities (with grantor)" in the Security Window.  
  329. ' u - List of valid users. Used by "Select from list" button in the Security Window.  
  330. ' r - List of valid roles (Oracle only). Used by "Select from list" button in the Security Window.    
  331. '
  332. ' parm-type. This takes values 1 or 2 and immediately follows type (eg. M1 etc).
  333. ' This is used when the objects are identified not by the names which appear in the 
  334. ' grid but by internal id fields.
  335. ' These id fields will actually be in the grid, as a "hidden" grid column. These hidden columns
  336. ' are on the right of the other columns and have length 1 (you will see them in all the queries).
  337. ' The parm-type tells AQT to use the hidden column in the query as opposed to the normal name columns.
  338. ' A value of 1 says just use one hidden column (eg. the right-most column of the grid).
  339. ' A value of 2 says to use 2 hidden columns (eg. the right-most two columns of the grid).
  340. '********************************************************************************************************
  341. queries;
  342. 1;m;Tables/Views within Database;Select distinct tabschema from syscat.tables;Schema;1200;
  343. 2;m;Tables (only) within Database;Select distinct tabschema from syscat.tables where type = 'T';Schema;1200;
  344. 3;m;Packages within Database;Select distinct pkgschema from syscat.packages;Schema;1200;
  345. 4;m;Triggers within Database; Select distinct trigschema from syscat.triggers;Schema;1200;
  346. 6;m;Indexes within Database;Select distinct indschema from SYSCAT.INDEXES;Schema;1200;
  347. 7;u;Users within Database;Select distinct grantee from (select distinct grantee from SYSCAT.TABAUTH union select distinct grantee from syscat.packageauth union select distinct  grantee from syscat.dbauth) as a;User;1200;
  348. 9;m;Views within Database;Select distinct creator from SYSIBM.SYSTABLES where type = 'V';Schema;1200;
  349.  
  350. 10;m;Tables/Views within Schema;Select tabname, type, substr(remarks,1,50) from syscat.tables where tabschema = ? order by 1;Table;2000;Type;500;Desc;3500;
  351. 11;s;Full details of;Select * from syscat.tables where tabschema = ? and tabname = ?;Column;1500;Value;3000;
  352. 12;m;Indexes on;Select indname,uniquerule,colnames from syscat.indexes where tabschema = ? and tabname=? order by indname;Index;1500;Type;500;Columns;4000;
  353. 13;m;Objects comprising View;Select  BSCHEMA, BNAME, BTYPE from SYSCAT.VIEWDEP where viewschema=? and viewname=? order by 1,2;Schema;1200;Name;2000;Type;500;
  354. 14;m;Packages using;Select a.pkgschema,a.pkgname, b.remarks,a.tabauth from SYSCAT.PACKAGEDEP a, syscat.packages b where a.pkgschema=b.pkgschema and a.pkgname=b.pkgname and bschema = ? and bname=? order by 1,2;Pkg Schema;1000;Pkg Name;2000;Desc;5000;
  355. 15;m;Access list for;Select distinct grantee, selectauth, updateauth, insertauth, deleteauth, alterauth, refauth from sysibm.systabauth where tcreator = ? and ttname=? order by grantee;Userid;1000;Select;800;Update;800;Insert;800;Del;800;Alter;600;Ref;600; 
  356. 16;m;Views on;Select VIEWSCHEMA, VIEWNAME from SYSCAT.VIEWDEP where bschema=? and bname=? order by 1,2;View Schema;1500;View Name;2500;
  357. 17;w;Definition of view;Select substr(TEXT,1,2000)  from SYSCAT.VIEWS WHERE VIEWSCHEMA=? AND VIEWNAME=? order by seqno;a;1;
  358. '17;v;Definition of view;Select TEXT, seqno  from pcastle.SYSVIEWS WHERE CREATOR=? AND NAME=? order by seqno;Seq;800;Text;5000;
  359. 20;c;Column list for;SELECT COLNAME, TYPENAME, length, SCALE, NULLS,remarks,COLNO,default FROM SYSCAT.COLUMNS WHERE TABSCHEMA=? and TABNAME=? order by colno;Name;2000;Type;1000;Length;650;Scale;500;Nulls;500;Desc;3000;Default;2500;
  360. 21;s;Details of package;Select * from syscat.packages where pkgschema = ? and pkgname = ?;Column;1500;Value;3000;
  361. 22;m;Objects used by Package;Select bschema,bname, btype,tabauth from SYSCAT.PACKAGEDEP where pkgschema=? and pkgname=? order by 1,2;Schema;1500;Name;2000;Type;1000;Tabauth;800;
  362. 23;m;Statement in package;Select SECTNO,STMTNO, SEQNO, substr(TEXT,1,200)from SYSCAT.STATEMENTS where pkgschema=? and pkgname=? order by 1,2,3;Section;700;Stmt;600;Seq;500;Text;8000;
  363. 24;m;Access list for package;Select GRANTEE, GRANTEETYPE, executeauth, BINDAUTH, CONTROLAUTH from SYSCAT.PACKAGEAUTH where pkgschema=? and pkgname=? order by grantee;Id;1000;Id Type;800;Execute;800;Bind;800;Control;800;
  364. 25;t;Details of trigger;Select * from syscat.triggers where trigschema = ? and trigname = ?;Column;1500;Value;3000;
  365. 26;m;Triggers on table;Select TRIGSCHEMA,TRIGNAME,VALID,Trigevent,TRIGTIME from SYSCAT.TRIGGERS WHERE TABSCHEMA=? AND TABNAME=?;Schema;1200;Name;1500;Valid;600;Event;600;Time;600;
  366. 27;m;Triggers involving table;Select  a.TRIGSCHEMA, a.TRIGNAME, b.tabschema,b.tabname,b.valid from SYSCAT.TRIGDEP a, syscat.triggers b where a.trigschema=b.trigschema and a.trigname=b.trigname and a.bschema=? AND BNAME=?;Trg Schema;1000;Trg Name;1000;Tab Schema;1200;Tab Name;1800;Valid;600;
  367. 31;m;Tables (only) within Schema;Select tabname, substr(remarks,1,50) from syscat.tables where tabschema = ? and type='T' order by 1;Table;2000;Desc;3500;
  368. 32;m;Packages within Schema;Select PKGNAME, valid, remarks, LAST_BIND_TIME,TOTAL_SECT from SYSCAT.PACKAGES where pkgschema=? order by 1;Name;1500;Valid;500;Desc;2500;
  369. 33;m;Triggers within Schema;Select TRIGNAME,VALID, REMARKS from SYSCAT.TRIGGERS where trigschema=? order by 1;Name;1500;Valid;500;Desc;2500;
  370. 34;d;Contents of;Select TRIGNAME,VALID, REMARKS from SYSCAT.TRIGGERS where trigschema=? order by 1;Name;1500;Valid;500;Desc;2500;
  371. 35;m;Parent Tables for;Select REFTABSCHEMA, REFTABNAME, FK_COLNAMES, PK_COLNAMES, deleterule from SYSCAT.REFERENCES WHERE TABSCHEMA =? and TABNAME=?;Schema;1000;Parent Table;1500;Child Cols;2000;Parent Cols;2000;Delete Rule;1000;
  372. 36;m;Child Tables for;Select TABSCHEMA, TABNAME, PK_COLNAMES, FK_COLNAMES,deleterule from SYSCAT.REFERENCES WHERE REFTABSCHEMA =? and REFTABNAME=?;Schema;1000;Child Table;1500;Parent Cols;2000;Child Cols;2000;Delete Rule;1000;
  373. 37;m;Dependent objects for trigger;Select  BSCHEMA, BNAME, BTYPE WHERE from SYSCAT.TRIGDEP  WHERE TRIGSCHEMA=? AND TRIGNAME=?;Schema;1000;Name;1500;Type;600;
  374. 38;m;Tables within Schema;Select TABNAME,type,CARD,NPAGES from SYSCAT.TABLES WHERE TABSCHEMA=? order by npages desc;Table;2000;Type;500;Rows;800;Pages;800;
  375. 39;m;Column sizing for;Select COLNAME,COLCARD,LENGTH,AVGCOLLEN,LOW2KEY,HIGH2KEY from SYSCAT.COLUMNS WHERE TABSCHEMA =? and TABNAME=? order by colno;Name;1500;Distinct;800;Length;800;Avg Len;800;2nd Lowest Value;1500;2nd Highest Value;1500;
  376. 40;m;Tablespaces within database;Select distinct tbspace from SYSCAT.TABLESPACES;Tablespace;1500;
  377. 41;s;Details of tablespaces;Select * from SYSCAT.TABLESPACES where tbspace=?;Column;1500;Value;3000;
  378. 42;m;Indexes within Schema;Select iNDNAME,TABSCHEMA,TABNAME from SYSCAT.INDEXES WHERE INDSCHEMA=?;Name;1800;Tab Schema;1000;Tab Name;1500;
  379. 43;s;Details of Index;Select * from SYSCAT.INDEXES WHERE INDSCHEMA=? AND INDNAME=?;Column;1500;Value;3000;
  380. 44;m;Tables within Tablespace;Select TABSCHEMA,TABNAME,NPAGES,CARD from SYSCAT.TABLES WHERE TBSPACE=? order by 1,2;Tab Schema;1200;Tab Name;1800;Pages;600;Rows;800; 
  381. 45;a;Table authorities for user;Select distinct TABSCHEMA,TABNAME,SELECTAUTH, UPDATEAUTH,INSERTAUTH, DELETEAUTH, ALTERAUTH, CONTROLAUTH, REFAUTH, INDEXAUTH from SYSCAT.TABAUTH WHERE GRANTEE=? ORDER BY 1,2;Schema;1000;Name;1800;Select;600;Update;600;Insert;600;Delete;600;Alter;600;Control;600;References;600;Index;600;
  382. 46;m;Package authorities for user;Select distinct PKGSCHEMA,PKGNAME,EXECUTEAUTH,BINDAUTH, CONTROLAUTH from SYSCAT.PACKAGEAUTH WHERE GRANTEE=?;Schema;1000;Package;1500;Execute;800;Bind;800;Control;800; 
  383. 47;m;Database authorities for user;Select distinct CONNECTAUTH,CREATETABAUTH,BINDADDAUTH,DBADMAUTH,NOFENCEAUTH, IMPLSCHEMAAUTH from SYSCAT.DBAUTH WHERE GRANTEE=?;Connect;1000;Create Tab;1000;Bind Add;1000;Dbadm;1000;No Fence;1000;Implicit Schema;1200;
  384. 48;v;Definition of view;Select substr(TEXT,1,2000)  from SYSCAT.VIEWS WHERE VIEWSCHEMA=? AND VIEWNAME=? order by seqno;a;1;
  385. 49;m;Views within Schema;Select name, type, substr(remarks,1,50) from sysibm.systables where creator = ? and type = 'V' order by 1;Table;2000;Type;500;Desc;3500;
  386. 50;b;Table authorities for;Select TABSCHEMA,TABNAME,GRANTOR,SELECTAUTH, UPDATEAUTH,INSERTAUTH, DELETEAUTH, ALTERAUTH, CONTROLAUTH, REFAUTH, INDEXAUTH from SYSCAT.TABAUTH WHERE GRANTEE=? ORDER BY 1,2;Schema;1000;Name;1800;Grantor;800;Select;600;Update;600;Insert;600;Delete;600;Alter;600;Control;600;References;600;Index;600;
  387. 78;m;Schema authorities for user;Select distinct SCHEMANAME,CREATEINAUTH,ALTERINAUTH,DROPINAUTH from SYSCAT.SCHEMAAUTH  WHERE GRANTEE=?;Schema;1200;Create;800;Alter;800;Drop;800;
  388.  
  389. '***********************************************************************************************
  390. ' The func entries give the column functions associated with column types. These are used by 
  391. ' the WHERE CLAUSE and QUERY COLUMN windows in the GUI Query builder.
  392. ' Format is:
  393. ' func;coltype;function;newtype;   (function;newtype repeats)
  394. ' coltype    the column type this function is relevant for
  395. ' function   the function name. Code : where the column name will be placed.
  396. ' newtype    if the function changes the column type (eg. converts it from INTEGER to CHAR for 
  397. '            example) code the new column type here. Leave null if the type does not change).   
  398. '***********************************************************************************************
  399. func;DATE;TO_CHAR(:,'YYYY-MM-DD');CHAR;ADD_MONTHS(:,1);;LAST_DAY(:);;MONTHS_BETWEEN(:,SYSDATE);INT;TRUNC(:,'YEAR');;
  400. func;CHAR;SUBSTR(:,1,20);;CONCAT(:,'string');;LTRIM(:,5);;RTRIM(:,5);;LOWER(:);;UPPER(:);;INITCAP(:);;INSTR(:,'x');INT;LENGTH(:);INT;TO_DATE(:,'MM-DD-YYYY');DATE;TO_NUMBER(:,'9G999D99');NUMBER;REPLACE(:,'from','to');;
  401. func;INT;TO_CHAR(:,'L99G999D99MI');CHAR;ABS(:);;SIGN(:);;TRUNC(:);;
  402. func;NUMBER;TO_CHAR(:,'L99G999D99MI');CHAR;ROUND(:);;ABS(:);;SIGN(:);;TRUNC(:);;CEIL(:);;FLOOR(:);;
  403.  
  404. '***********************************************************************************************
  405. ' The const entries give system variables and example values for a column.
  406. ' These are displayed when the Get Constants button is clicked in the WHERE CLAUSE 
  407. ' and QUERY COLUMN windows in the GUI Query builder.
  408. ' Format is:
  409. ' const;coltype;constant;   (constant repeats)
  410. ' coltype    the column type this constant is relevant for.
  411. '            Use ALL for the list which gets displayed when there is a non-column-based Where clause.
  412. ' constant   the system variables or example value
  413. '***********************************************************************************************
  414. const;DATE;SYSDATE;TO_DATE('23092001','dd-mm-yyyy');
  415. const;CHAR;USER;USERENV('option');
  416. const;INT;0;
  417. const;NUMBER;0;
  418. const;ALL;SYSDATE;USER;UID;TO_CHAR(Sysda