Difference between revisions of "CLOSE TABLES"
Yvonne.milne (Talk | contribs) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Closes the currently open tables and their associated files in the active database | Closes the currently open tables and their associated files in the active database | ||
− | |||
==Syntax== | ==Syntax== | ||
CLOSE TABLES [ALL] | CLOSE TABLES [ALL] | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ADATABASES()]], [[ALTER INDEX]], [[ALTER TABLE | + | [[ADATABASES()]], [[ALTER INDEX]], [[ALTER TABLE]], [[CLOSE DATABASES]], [[COMPILE DATABASE]], [[COPY DATABASE]], [[CREATE DATABASE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DISPLAY SCHEMAS]], [[DISPLAY TABLES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST SCHEMAS]], [[LIST TABLES]], [[OPEN DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[USE]] |
− | + | ||
==Description== | ==Description== | ||
Line 15: | Line 12: | ||
If the ALL keyword is included, all tables and their associated files will be closed. | If the ALL keyword is included, all tables and their associated files will be closed. | ||
− | |||
− | |||
− | |||
==Example== | ==Example== | ||
Line 26: | Line 20: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
[[Category:Databases]] | [[Category:Databases]] | ||
− |
Latest revision as of 10:39, 21 December 2012
Contents
Purpose
Closes the currently open tables and their associated files in the active database
Syntax
CLOSE TABLES [ALL]
See Also
ADATABASES(), ALTER INDEX, ALTER TABLE, CLOSE DATABASES, COMPILE DATABASE, COPY DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY SCHEMAS, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST SCHEMAS, LIST TABLES, OPEN DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE
Description
The CLOSE TABLES command closes the currently open tables and their associated files in the active database. The database itself remains open. If no database is currently open, all tables and their associated files are closed.
If the ALL keyword is included, all tables and their associated files will be closed.
Example
OPEN DATABASE hr EXCLUSIVE use staff CLOSE TABLES