The View Editor is provided for altering SQL views. To open the View Editor, simply double-click a view on the diagram or select the Properties item from the context menu. The View Editor contains several tabs, each of which will be described below. General This tab allows you to set the name of the view and write comments for it. There are the following fields on the tab: View Name View Definer Comments Generate
Execution The Execution tab provides control over options applied at view invocation time. View Algorithm Check Option Execute under INVOKER permissions SQL Query This tab allows to set the SELECT statement that provides the definition of the view. A view can be created from many kinds of SELECT statements. For example, the SELECT can refer to a single table, a join of multiple tables, or a UNION. The SELECT need not even refer to any tables. An example of SELECT statement, which could be used here: SELECT product_id, product_name FROM Products Script This tab allows you to set SQL statements, which will be executed before (use Begin tab) and after (use End tab) generation of the view. Preview The Preview tab displays the SQL statement, which will be executed during the database generation. This statement is made up according to the changes you have made using previous tabs. Note, that the text within the editor is read-only. The content of this tab updates only then your press Apply button. Notes The Notes tab allows you to define a description and an annotation for the edited view. This properties will not affect the physical database, but they can be useful for your diagram development. Format These options allow you to set the view symbol line and fill color for displaying on the diagram, different from the default colors. See also: |