User`s guide

Saving Queries in Files
5-63
To run a Select query, use the MATLAB workspace variable field to assign a
variable to the data and click Execute.
For an Insert query, the saved query may include a workspace variable, which
appears as part of the MATLAB command field. Type that variable name or
enter a new name in the MATLAB workspace variable field. Press Return or
Enter to see the updated MATLAB command.
4
Click Execute to run the query.
Tip You can generate a file that runs the query from the Command Window in
the future. For details, see “Saving Queries in Files” in the Database Toolbox
documentation.
Editing Queries
Edit a query using one of the following options:
Changing your selections.
Editing the SQL statement field.
Editing the MATLAB command field.