Creating a database (SQL)

 Create a new database (SQL)

In Interactive SQL, use the CREATE DATABASE statement to create databases. You need to connect to an existing database before you can use this statement.

  1. Start a database server named sample.

    dbeng12 -n sample
  2. Start Interactive SQL.

  3. Connect to an existing database. If you don't have a database, you can connect to the utility database utility_db.

  4. Execute a CREATE DATABASE statement.

 See also
 Example