You can add, remove and modify table records by running SQL statements in the Database console or in the editor. You can also edit the records retrieved from tables in the Results pane.

Besides these facilities, PyCharm also features the Table Editor which provides a graphical interface for manipulating table data.

The Table Editor is available only for the DB type data sources.

  1. In the Database tool window, select the table of interest.
  2. Do one of the following:
    • Press F4.
    • Select open_table_editor.png Open Table Editor from the context menu.

As a result, the table opens in the Table Editor on a separate editor tab.

  1. Do one of the following:
    • Click properties.gif Properties on the toolbar of the Table Editor.
    • Select Properties from the context menu.
  2. In the Table Editor Properties dialog, select the General tab.
  3. In the Page Size field, specify the number of rows to display simultaneously. For all table rows to be shown at the same time, type zero.
  4. Click OK.
  5. Optionally, if you want to apply the new page size setting to the current table view, do one of the following:
    • Press Ctrl+R.
    • Click refresh.png Reload Page on the toolbar of the Table Editor.
    • Select Reload Page from the context menu.
  1. Do one of the following:
    • Click properties.gif Properties on the toolbar of the Table Editor.
    • Select Properties from the context menu.
  2. In the Table Editor Properties dialog, select the Data Export tab.
  3. In the String Quotation fields, specify the characters that should be used to enclose the exported string values.

    The characters preceding and following the string values may be different. That's why two separate fields are provided.

  4. In the Values Separator field, specify the character or characters to be used to separate exported values.
  5. If you want to include the table header (column names) in exported data, select the Include Table Header check box.
  6. If you want to include the row numbers in exported data, select the Include Row Number check box.
  7. Click OK.

You can save large objects (LOBs) stored in database tables in local files. To do that:

  1. Select the cell containing the large object of interest.
  2. Do one of the following:
    • Click mainToolbarSave.gif Save LOB As on the toolbar of the Table Editor.
    • Select Save LOB As from the context menu.
  3. In the Select File to Save dialog:
    1. Specify the destination directory in the upper part.
    2. Type the name of the file File name field.
    3. Click OK.

You may want to refresh the view of a table in the Table Editor in order to:

In all such cases, use the Reload Page command:

  • Press Ctrl+R.
  • Click refresh.png Reload Page on the toolbar of the Table Editor.
  • Select Reload Page from the context menu.

See Also

Language and Framework-Specific Guidelines:

Reference:

Web Resources: