Difference between revisions of "CLOSE DATABASE"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Closes the currently open database | Closes the currently open database | ||
− | |||
==Syntax== | ==Syntax== | ||
CLOSE DATABASE [ALL] | CLOSE DATABASE [ALL] | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ADATABASES()]], [[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE | + | [[ADATABASES()]], [[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[CLOSE TABLES]], [[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]], [[SQL USE|USE]] |
− | + | ||
==Description== | ==Description== | ||
The CLOSE DATABASE command closes the currently open database and its tables. If no database is currently open, all tables and their associated files are closed. | The CLOSE DATABASE command closes the currently open database and its tables. If no database is currently open, all tables and their associated files are closed. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Example== | ==Example== | ||
Line 26: | Line 18: | ||
</code> | </code> | ||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:SQL]] | [[Category:SQL]] | ||
[[Category:Databases]] | [[Category:Databases]] | ||
− |
Latest revision as of 10:38, 21 December 2012
Contents
Purpose
Closes the currently open database
Syntax
CLOSE DATABASE [ALL]
See Also
ADATABASES(), ADD TABLE, ALTER INDEX, ALTER TABLE, CLOSE TABLES, 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 DATABASE command closes the currently open database and its tables. If no database is currently open, all tables and their associated files are closed.
Example
OPEN DATABASE hr EXCLUSIVE SELECT staff_no, lastname from staff CLOSE DATABASES