7.1. Query Editor Structure
The CUBRID Manager's Query Editor is a query tool that supports execution of all DML, DDL, DCL statements, allowing users to edit and execute queries more easily. To run the Query Editor, select Tools > New Query or select New Query from the toolbar. You can also right-click a specific database and then select New Query.
If you select New Query by right clicking on a database, the default query editor is run with the basic information provided upon login to the corresponding database.
However, if you select it on the menu or toolbar, you can specify your login information by yourself to connect the database. The character set displayed on the screen is the same one that is specified for the database connection. You can log in setting the information of the database login, character set, and JDBC driver version. Note that separate configuration for broker connection is enabled in case a Broker is running in another server.
The Query Editor window is divided into a query edit pane at the top and a query results pane at the bottom. In the query edit pane, you can type and edit queries to execute with a toolbar that contains icons for frequently used functions in the Query Editor. In the query results pane, you can see the query results in a tab format and check the query execution time.
When you use multiple editors at the same time, it could more convenient to check the connection information in the title bar (at top) and in the status bar (at bottom) of the CUBRID Manager. Information that will be displayed is as follows: database, user name, broker port, and charset.
7.2. Query Results Pane
The query results pane displays the results of the query executed. If there are multiple queries executed, the results of each query are displayed in a separate tab. You can check the query results by selecting the corresponding tab.
The query results pane is divided into areas where you can navigate the results, view information of the executed query, and check execution time and the number of results returned by the query.
7.3. Query Results Pane functions
7.4. Query Editor other functions
Executing Multiple Queries
Enter a semicolon at the end of the query statement to specify the end of one query and the start of the next. If there are multiple queries, they are executed sequentially. Each query creates a corresponding tab in the query results pane. If you execute multiple queries without separating them with semi-colons, only the first query is executed, with the rest ignored.
Cancel Query Function
A function that stops the currently running query. This can be divided into two functions.
7.5. Query Execution Plan
If Display query plan is selected in the Query Editor's options, Display query plan becomes activated in the Query Editor toolbar.
You can check how the selected query will be executed, even without executing it, by clicking Display query plan from the toolbar or by clicking <Ctrl+L>. You can also check query execution plan that have already been executed.
Since query plans are displayed all the time at the bottom of the Query Editor window, you can check the existing query plans by opening query plan history files without connecting to the database.
The query plan function retrieves the SQL execution plans it is used not for a one-time purpose but for a collection purpose to continuously manage and retrieve them. Every time you retrieve a query plan, the query plan history is accumulated. You can save this accumulated data to an .xml file. When you open the saved .xml file, you can check the original query plan and executed SQL statements. If it is a one-time retrieval, select Disable to collecting histories to view the current query plan without recording history.
The Query Explain tab consists of a toolbar, query plan display pane, original statement display pane and query plan history pane.
Query Explain tab
If you select a query and then click Display query plan, the query plan is displayed in the Query Explain tab. The Query Explain tab shows the query plan summarized in the tree structure.
The Query Explain tab is located to the right of the Result tab. You can switch to the Query Explain tab while viewing the query result.
Query Explain Toolbar
The Query Explain toolbar has the following functions:
Query Plan Display Pane
In the query plan display pane, the query plan executed in each step is displayed in the tree structure.
Each item in the vertical axis is called a node. Each node contains different data. You can view the tree moving from the top to the bottom.
The horizontal axis is called an item and contains Type, Table, Index, Terms, CPU I/O cost, Disk I/O cost, and Total (ROW/PAGE).
The original statements of the query plan selected in the query plan pane are displayed below the query plan display pane.
Query Plan History Pane
Histories are displayed accumulatively in the query plan history pane every time a query plan is executed. # is the accumulation order and corresponds to the tab number below the query plan display pane. Date indicates the date when a query plan is executed, and Cost is the sum of CPU and Disk I/O costs. If you double-click an item in the query plan history pane, you can view the query plan again in the query plan display pane.
Using Query Plans
By using the query plan function, you can analyze data while viewing the query plan and the schema info of the corresponding table.
If you right-click a row where a table is located in the query plan display pane and then select Show Schema Info, you can open and view the schema information of the table as well.
You can also view the information in a separate window by dragging the Schema Info pane out of the CUBRID Manager. This can be useful in an environment using multiple monitors.
Query result filter
After run the query on the query editor, you can find some data using some filter on the query result pane such as the following image.

It will make a highlight on the query result If you input a keyword which you want to find something. Also, you can use several filter options by clicking the filter menu if you want to find in detail as followings: