SQL CREATE DATABASE statement is a DDL SQL statement , CREATE DATABASE statement to create a database. After creating the database, we can create several other database objects (tables, views, procedures, etc.) in them. Users should have created a database administrator privileges.
SQL CREATE DATABASE syntax
In the above query,
- Database_name- name of the database is to be created
- collation_name- is the default database collation (character set). collation_name This is an optional field, if not provided, the collation of the database will be assigned to the default.
SQL CREATE DATABASE example
If you want to create a database geekdocscom default collation, the statement would be similar
If you want to use collation Latin General
create the database MyOtherDatabase, the statement is:
To delete a database can read Geeks tutorial of SQL database deleted .