You can use the SQL Editor to write and execute SQL statements and SQL scripts within the IDE. The SQL statement or script is executed on the database that is selected in the Connection drop-down menu in the toolbar. If the database connection is closed, the IDE opens the connection to the database.
You can use the SQL Editor to create, edit and execute any SQL files in your project.
To open an SQL file, right-click the SQL file ( ) in the Projects or Files window and choose Open.
You can also double-click the icon to open the file in the SQL Editor.
To create and execute a SQL statement or script:
When you execute an SQL statement or script, the status of the SQL execution is displayed in the Output window. Any errors when executing the SQL statement or script are displayed in the Output window.
When you execute an SQL statement, the output of the statement appears in the results pane in the lower half of the SQL Editor. If the statement has no output, the number of affected rows is displayed in the Output window of the IDE.
You can access the Execute Command pop-up menu item from any subnode of a connected database ( ) in the Runtime window.