[MySql nanny level tutorial] MySql database creation

Create a database:

create databases customer;

Show database:

show create database customer;

Delete the database:

 drop database zjj;

Running effect display:
insert image description here

Show all databases:

show databases;

Modify the database character set to gbk MYSQL command:

alter database customer character set gbk;

Switch to the database of your choice:

use customer;

View the contents of the currently selected database:

select database();

Running effect display:insert image description here

Guess you like

Origin blog.csdn.net/qq_52115728/article/details/124034236