15.6. Edit Enterprise Tool

The Edit Enterprise tool allows you to view the data that's stored in a table or view, and to edit the content if technically possible. In order to invoke it please go to Tools -- > View Data

The header of the Enterprise will show the name of each column, together with the data type. A column that's part of the primary key will additionally be marked with [PK].

Important: In order to edit the data, each row in the table must be uniquely identifiable. This can be done using the ROWID, or a primary key. If none of them exist, the table is read only. Note that views can't be edited and are read only by design; updatable views (using rules) are not supported at this time.

To change the value of a field, you select that field and enter the new text. The Store toolbar button allows the data to be written back to the server. The row will be written automatically, if you select a different row.

To enter a new row into the table, you enter the data into the last row that has a row number marked with an asterisk. As soon as you store the data, the row will get a row number, and a fresh empty asterisk line is created.

If an SQL NULL is to be written to the table, simply leave the field empty. If you store a new row, this will let the server fill in the default value for that column. If you store a change to an existing row, the value NULL will explicitly be written.

To enter a new line into a field, press Ctrl-Enter.

If you want EDB-Studio to write an empty string to the table, you enter the special string '' (two single quotes) in the field. If you want to write a string containing solely two single quotes to the table, you need to escape these quotes, by typing \'\'

To delete a row, press the Delete toolbar button.

The Refresh toolbar button allows you to reread the contents of the table, refreshing the display.

You can select one or more rows, and copy them with

Ctrl-C

or the Copy toolbar button to the clipboard.

The Sort/Filter toolbar button will open the Section 15.7View Data Options dialog.