Informix SQL statement detailed explanation

Source: Internet
Author: User

1.CREATE database database_name [with LOG in ' pathname '] creates the databases.

database_name: Database name.

"Pathname": Transaction processing log file.

Create a Database_name.dbs directory, access permissions set by Grant, no log file can not be used

A transaction statement such as BEGIN work (which can be changed with the start database statement).

You can select a log file for the current database.

For example: Select Dirpath form systables where tabtype = "L";

Example: Create Databse Customerdb with log in "/usr/john/log/customer.log";

2.DATABASE databse-name [EXCLUSIVE] Select the database.

database_name: Database name.

EXCLUSIVE: Exclusive state.

Access the database in the current directory and in the directory specified in DBPath, and do not use this statement during processing in transactions.

Example: Dtabase Customerdb;

3.CLOSE DATABASE

Closes the current database.

database_name: Database name.

After this statement, only the following statements are valid:

CREATE database; database; DROP databse; Rollforward database;

You must use this statement before you delete the database.

Example: Close database;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.