home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / os2 / sqledit.zip / SQLEDIT.HLP (.txt) < prev    next >
OS/2 Help File  |  1993-05-16  |  8KB  |  164 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Select Data Base ΓòÉΓòÉΓòÉ
  3.  
  4. Select the data base whose contents you wish to edit during this session of 
  5. SQLEDIT. The data base you choose will be opened for processing. The data base 
  6. may be selected by clicking mouse button 1 on its name and then clicking mouse 
  7. button 1 on the Enter box. 
  8.  
  9.  
  10. ΓòÉΓòÉΓòÉ 2. Select Stored Query ΓòÉΓòÉΓòÉ
  11.  
  12. You have chosen to work with a query previously stored with the data base, 
  13. either by executing the stored query directly, or by modifying the stored query 
  14. before execution. Choose one of the stored queries by clicking mouse button 1 
  15. on its name and then clicking mouse button 1 on the "Enter" box. 
  16.  
  17.  
  18. ΓòÉΓòÉΓòÉ 3. Enter Ad Hoc Query ΓòÉΓòÉΓòÉ
  19.  
  20. You can now enter a new SQL query in the indicated window. Editing may be done 
  21. using the backspace key, the cursor positioning keys and the DELETE key from 
  22. the keyboard. This query must be a "SELECT" statement using valid SQL syntax. 
  23.  
  24.  
  25. ΓòÉΓòÉΓòÉ 4. Edit Data Item ΓòÉΓòÉΓòÉ
  26.  
  27. You can now edit a data item, using the keyboard and the mouse. The data may be 
  28. edited without regard for leading or trailing blanks. These will be handled 
  29. automatically, depending on the base data type of the item. The edited data 
  30. item must conform to the rules for the representation of its underlying data 
  31. type. For example, an INT or SHORTINT data type may contain only numeric 
  32. characters, aside from an optional leading sign. Errors in edited data will not 
  33. be caught until the data is used in an SQL transaction. 
  34.  
  35. When you have completed editing the data item, click mouse button 1 on the 
  36. Enter box. The whole process may be aborted by clicking mouse button 1 on the 
  37. Cancel box. 
  38.  
  39.  
  40. ΓòÉΓòÉΓòÉ 5. Select Query File ΓòÉΓòÉΓòÉ
  41.  
  42. Select a file containing the text of a valid SQL SELECT query. This query will 
  43. be executed to select the rows and columns to be edited. You may choose the 
  44. logical drive and the directory this file resides in. Also, for HPFS file 
  45. systems, you may choose a file with a name whose length exceeds standard 
  46. restrictions. 
  47.  
  48.  
  49. ΓòÉΓòÉΓòÉ 6. Edit Data ΓòÉΓòÉΓòÉ
  50.  
  51. You can now edit data which has been retrieved from the database by your query. 
  52. The data may be scrolled both vertically and horizontally using the scrollbars. 
  53. Editing the data will generate the text of SQL transaction(s) which, when 
  54. executed successfully, will then store the edited data permanently in the 
  55. database. The entire procedure may be terminated at any time prior to actually 
  56. executing the transactions by clicking on the Cancel box with mouse button 1. 
  57. When you have finished editing the data, you may permanently commit the changes 
  58. into the database by clicking on the Execute box. Note that any of these 
  59. generated transactions may fail for a large variety of reasons. These reasons 
  60. include (but are not limited to) lack of authorization, bad syntax in an 
  61. expression, invalid data, impermissible updating of a view, invalid table name, 
  62. etc. For every invalid SQL transaction an appropriate error message will be 
  63. displayed and must be acknowledged. All valid transactions will run 
  64. successfully even if some of the transactions are in error. 
  65.  
  66. No record is kept of the name of the table or view from which the displayed 
  67. data is derived. In fact, there may not be such a table if the output data is a 
  68. composite of data from more than a single table. For this reason, when the 
  69. Execute is selected, you will be asked to enter a table name against which the 
  70. transaction(s) will be run. 
  71.  
  72. If you need more room in a column to enter data (as can occur when you enter a 
  73. valid SQL expression, as opposed to data, into a column), first click mouse 
  74. button 1 on the Widen box. Then move the pointer anywhere within the column of 
  75. interest except for the header portion of the display and click mouse button 2. 
  76. This will widen the column by a fixed increment. If further widening is needed, 
  77. simply repeat this procedure as many times as required. 
  78.  
  79. For INSERT and UPDATE transactions, the edited data must conform to the SQL 
  80. rules for valid transactions. Not only must the data conform to the rules 
  81. related to the underlying data type of the columns, but the transaction to 
  82. update the data base must comply with existing authorizations for the database. 
  83.  
  84. To get information on how to perform specific editing functions, double click 
  85. on the name below. 
  86.  
  87.  Insert 
  88.  
  89.  Update 
  90.  
  91.  Delete 
  92.  
  93.  
  94. ΓòÉΓòÉΓòÉ 7. Inserting New Rows ΓòÉΓòÉΓòÉ
  95.  
  96. You may insert new rows into a table or view using existing rows as a model. To 
  97. accomplish this, first click on the Insert box with mouse button 1. Then move 
  98. the pointer to anywhere within the row that you wish to use as a model and 
  99. click on it, using mouse button 2. This will cause a copy of the row to be 
  100. added at the end of the display. This row will be colored the same color as the 
  101. Insert box. You may now edit individual columns within this row by clicking on 
  102. the Select box with mouse button 1. Then move the pointer to the column in the 
  103. added row whose data you wish to edit and click on it with mouse button 2. The 
  104. data item selected will be presented in an edit window and may now be edited 
  105. using standard techniques. Continue this procedure for as many columns as you 
  106. wish to modify. Not modifying any columns will create a transaction which 
  107. attempts to insert a duplicate row. This may or may not be valid, depending 
  108. upon the definition of the table. 
  109.  
  110.  
  111. ΓòÉΓòÉΓòÉ 8. Updating Existing Rows ΓòÉΓòÉΓòÉ
  112.  
  113. You may update column(s) in existing rows that have been retrieved by the SQL 
  114. query. To accomplish this, click on the Update box with mouse button 1. Then 
  115. position the pointer on the column of the row that you wish to update and click 
  116. on it with mouse button 2. The selected row will be displayed in the same color 
  117. as the Update box. Also the selected data will be put into an edit window where 
  118. you may edit the data using standard techniques. If the edited data is too wide 
  119. to fit into the column,  it will be truncated. In this case, the  column should 
  120. be widened before the data is edited. No check is made at this time as to 
  121. whether it is valid to update the column being updated because of key 
  122. considerations, etc. This will only be done when the generated transaction is 
  123. actually run. 
  124.  
  125.  
  126. ΓòÉΓòÉΓòÉ 9. Deleting Existing Rows ΓòÉΓòÉΓòÉ
  127.  
  128. You may delete existing row(s) that have been retrieved by the SQL query. To 
  129. accomplish this, first click on the Delete by using mouse button 1. Next 
  130. position the cursor on the row to be deleted and click on it with mouse button 
  131. 2. The row will be displayed  in the  same color as the Delete box. 
  132.  
  133.  
  134. ΓòÉΓòÉΓòÉ 10. Enter Table Name ΓòÉΓòÉΓòÉ
  135.  
  136. Since the displayed columns may be derived from more than a single table or 
  137. view, no record is kept of the table name(s) used in the original SQL query 
  138. executed to retrieve the data. Instead, you must now enter the name of the 
  139. table or view against which the transactions you have generated will be run. 
  140. Indeed this table need not even be involved in the original query. Use standard 
  141. editing techniques to edit this entry. 
  142.  
  143.  
  144. ΓòÉΓòÉΓòÉ 11. Main Menu ΓòÉΓòÉΓòÉ
  145.  
  146. To terminate SQLEdit, click on Quit 
  147.  
  148.  
  149. ΓòÉΓòÉΓòÉ 12. Registration ΓòÉΓòÉΓòÉ
  150.  
  151. To receive a registered copy of SQLEdit whch may be executed an unlimited 
  152. number of times, please send $40 in U.S. currency to: 
  153.  
  154. Ammonoosuc Technology, Inc.
  155. 131 Ridge Road
  156. Franconia, NH 03580
  157.  
  158. This will also entitle you to receive fixes for the current version of SQLEdit 
  159. and to be notified of the availability of future, enhanced versions of SQLEdit. 
  160. Discounts are available for multiple copies of SQLEdit. To receive a copy of 
  161. these discount rates, contact Ammonoosuc Technology Inc. at the above address 
  162. by U.S. (snail)  mail or by electronic mail directed to 70761,1756 on 
  163. CompuServe or to 70761.1756@compuserve.com on Internet or to DEV2758 on 
  164. IBMLink..