In the Script view of the IBM® Script Designer, you can specify any of the following scripts:
You can also specify and run any combination of SQL and SPL statements and DDL scripts in this view. For example you can specify SQL statements for an SQL procedure, then specify a SELECT statement, and then specify a DDL script to create a table. Use the statement separator (@ or ;) to separate multiple scripts and statements.
In addition to SQL statements, you can also specify XQuery and SQLXML
scripts.
You can then run the single or multiple statements and scripts. If any of the statements contains a result set, the results are shown in the Result Data section.
For more information on scripts, refer to your
DB2® documentation. You can also find the information in
DB2 SQL documentation that is available through
The
SQL Reference for Cross-Platform Development Web page
on developerWorks.
To use the Visual Studio Query Builder to create the script,
right-click in this editor, and then select
Query Builder on the shortcut menu.
When you close the Query Builder, the SQL code in the Query
Builder is automatically pasted in this editor at the
insertion point.
IBM Script Designer | Reviewing and Updating Scripts for Procedures, Functions, or Objects