Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (Français) » SQL Anywhere Server - Database Administration » Administering your database » SQL Anywhere graphical administration tools » Using Interactive SQL » Editing result sets in Interactive SQL

 

Copying columns, rows, and cells from an Interactive SQL result set

You can copy cells, rows, and columns directly from the result set in Interactive SQL and then paste them into other applications. Copying rows and columns copies both the column headings and table data into the clipboard. You can only copy one column at a time.

Copied data is formatted according to the following Interactive SQL options:

You can also change these options from the Interactive SQL Options menu, by choosing Import/Export.

If these options are set to their defaults, the copied data is comma-delimited and the strings are enclosed in single quotes.

 ♦  To copy rows from the Interactive SQL result set
  1. To copy one row, right-click any cell in the row and choose Copy Data » Rows.

    To copy multiple rows, hold the Ctrl key while clicking cells in the rows, and then right-click and choose Copy Data » Rows.

    The selected row(s), including their column headings, are copied to the clipboard.

  2. You can now paste the row(s) into other applications.

 ♦  To copy column(s) from the Interactive SQL result set
  1. To copy one column, right-click any cell in the column and choose Copy Data » Columns.

    To copy multiple columns, hold the Ctrl key while clicking cells in the columns, and then right-click and choose Copy Data » Columns.

    If the Results pane does not contain the entire result set, you are prompted to fetch the remaining results before selecting them. Otherwise, only those results that have been fetched so far are selected.

    The column, including the column heading, is copied to the clipboard.

  2. You can now paste the column(s) into other applications.

 ♦  To copy cells from the Interactive SQL result set
  1. Right-click the cell you want to copy and choose Copy Data » Cells. To copy multiple cells, hold the Ctrl key while clicking cells, and then right-click and choose Copy Data » Cells.

    When you do this, no column headings are copied—only the data is copied to the clipboard, and no quoting is done.

  2. You can now paste the contents of the cell(s) into other applications.