Once you execute a query in Interactive SQL, you can edit the result set to modify the database. You can also select rows from the result set and copy them for use in other applications. Interactive SQL supports editing, inserting, and deleting rows. These actions have the same result as executing update, insert, and delete statements.
Before you can copy, edit, insert, or delete rows, you must execute a query in Interactive SQL that returns a result set on the Results tab in the Results pane. When you edit the result set directly, Interactive SQL creates and executes a SQL statement that makes your change to the database table.
To edit a row or value in the result set, you must have the proper permissions on the table or column you want to modify values from. For example, to delete a row, you must have delete permission for the table the row belongs to.
Attempt to edit a row or column you do not have permission on.
Select columns from a table with a primary key, but do not select all of the primary key columns.
Attempt to edit the result set of a join (for example, there is data from more than one table in the result set).
Enter an invalid value (for example, a string in a numeric column or a NULL in a column that does not allow NULLs).
When editing fails, an Interactive SQL error message appears explaining the error, and the database table values remain unchanged.
Once you make changes to table values, you must enter a commit statement to make the changes permanent. To undo your changes, you must execute a rollback statement.