查看SHOW DATABASES
的帮助:
示例:
查看CREATE DATABASE
的帮助:
示例:
CREATE DATABASE IF NOT EXISTS 'db_sonar';
CREATE DATABASE IF NOT EXISTS 'db_sonar' CHARACTER SET utf8;
CREATE DATABASE IF NOT EXISTS 'db_sonar' DEFAULT CHARACTER SET utf8;
CREATE DATABASE IF NOT EXISTS 'db_sonar' DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
查看ALTER DATABASE
的帮助:
示例:
ALTER DATABASE 'db_sonar';
示例:
USE 'db_sonar';
查看DROP DATABASE
的帮助:
示例:
DROP DATABASE IF EXISTS 'db_sonar';