Working with Results Grid


Result Grid has two modes: Results Display mode and Table Data Edit mode.

 

Results Display Mode

In Display query mode you can execute actions described below in a table. Generate SELECT/INSERT/DELETE/UPDATE for dates and string uses settings from Import / Export

 

Table Edit Mode

Table Data edit is entered when you select "Edit Table Data" from table popup menu in Object Pane. In this mode you can directly edit data in underlying table. When entering string values you do not need to enclose them in single quotes. To assign NULL value to a column leave content of cell empty. To enter empty string type two single quotes. Dates can be entered in any format which can be converted to date. If conversion to date fails nothing will be changed. Change in underlying table happens when you leave cell. At this point explicit COMMIT executed.

 

Grid popup menu actions

Results in New WindowDisplay current results in a new window
Generate
    SELECTGenerates select statements for current selection
    INSERTGenerates insert statement for current selection
    UPDATEGenerates UPDATE statement for current selection. If table has unique constraint then will use it, otherwise will use selected columns in update clause
    DELETEGenerates DELETE statement for current selection. If table has unique constraint then will use it, otherwise will use selected columns in delete clause
    WHERE IN ()Generates WHERE IN statement for current selection
    ORDER BY ()Generates ORDER BY statement for current selection
    GROUP BY ()Generates GROUP BY statement for current selection
    CREATE TABLE ()Generates CREATE TABLE statement based on current selection
Column FormatAllows to quickly change column display format
FilterAllows to quickly filter rows based on a value in current cell
Get Child / Parent RowsAllows to quickly retrieve Child / Parent rows rows based on a FOREIGN KEY constraint defined for selected rows
Find in ResultsFind in Results
CopyCopy selection to Clipboard. Data copied in two different formats
Copy With Column Name(s)Same as above only includes column names
Copy Column Name(s)Copy only column names to Clipboard
Export to ExcelExport selection to Excel
Export to FileExport selection to File
ResultsSwitch column and rows
    Add Result TabAdd new result tab if option Multiple Results Tabs enabled
    Delete Result TabDelete current result tab
    In GridDisplay query results in Grid
    In TextDisplay query results in Text
TransposeSwitch column and rows
Freeze ColumnsFreeze columns to the left of current cell
Show Column TypesDisplay column type below header in Grid
Show Column TotalsShow total for numeric columns in current selection

Notes

Generate feature by default copies generated statement to a current cursor position in Script Editor.

If you hold Ctrl key down when using generate then statement will be copied at the end of current script