To Submit a SQL Statement Stored in a Command File
From the SQL Window's File menu, choose Open.
The Open SQL Command File dialog opens.
Select the file that contains the desired statement.
When the statement is displayed in the SQL Window, click Submit to execute the query.