Editing a SQL Statement

Use SQL Query Builder to edit an individual SQL statement. You can only edit one SQL statement at a time.

Prerequisites 

Connect to the data source through a connection profile.

  1. Open an existing SQL file, and be sure to select the connection profile Type, Name, and Database.
  2. Highlight the entire single SQL statement, right-click and select Edit in SQL Query Builder.
  3. Edit the SQL statement as required.
  4. (Optional) To run the SQL code, in the SQL Source pane, right-click and select Run SQL.

    View the results in the SQL Results tab.

  5. Click OK to exit SQL Query Builder and to return to the SQL File Editor, where the SQL code displays in the editor window.

    Clicking Cancel results in no changes to the SQL code in the SQL File Editor. You lose any changes you made in SQL Query Builder.

Related concepts
SQL Query Builder
Related tasks
Creating a SELECT Statement
Creating an INSERT Statement From a Values Set
Creating an INSERT Statement From a Subquery
Creating an UPDATE Statement
Creating a DELETE Statement
Building Expressions
Running the SQL Statement Code
Related reference
SQL Query Builder Preferences