Download IBM Informix Guide to SQL Reference

Transcript
References
I4GL
ESQL
SE
You can use a simple database name in a program or host variable, or you can
use the full database server and database name. See the explanation of
Database Name on page 7-362 for more information. ♦
The DROP DATABASE statement does not remove the database directory if it
includes any files other than those created for database tables and their
indexes.
You can specify the full pathname of the database in quotes, as shown in the
following example:
DROP DATABASE "/u/training/stores5"
You cannot use a ROLLBACK WORK statement to undo a DROP DATABASE
statement. If you roll back a transaction that contains a DROP DATABASE
statement, the database is not re-created and you do not receive an error
message. ♦
SE
I4GL
You can specify a database that is not in your local directory or DBPATH by
putting the full operating system file in a variable for the database name.
LET db_var = "/u/training/stores5"
DROP DATABASE db_var
ESQL
♦
References
In this manual, see the following statements: CREATE DATABASE and CLOSE
DATABASE.
Syntax 7-133