Create a 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.

 To create a new database (SQL)
  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. See Connecting to the utility database.

  4. Execute a CREATE DATABASE statement.

See CREATE DATABASE statement.

 Example