Previous Topic

Next Topic

Save

Valid in: SQL, ESQL

The Save statement directs the DBMS Server to save the specified table until the given expiration date. By default, base tables have no expiration date. An expiration date cannot be assigned to a system table.

Previous Topic

Next Topic

Syntax

The Save statement has the following format:

[EXEC SQL] SAVE [schema.]table_name [UNTIL month day year];

Note: If the until clause is omitted, the expiration date is set to no expiration date. To purge expired tables from the database, use the verifydb command. Expired tables are not automatically purged.

Previous Topic

Next Topic

Embedded Usage

Syntax elements cannot be represented with host language variables in an embedded Save statement.

Previous Topic

Next Topic

Permissions

You must own the table.

Previous Topic

Next Topic

Locking

The Save statement takes an exclusive lock on the specified table.

Previous Topic

Next Topic

Example: Save

The following example saves the employee table until the end of February 2001:

save employee until feb 27 2001;


© 2007 Ingres Corporation. All rights reserved.