数据库操作DDL
show database; 查看所有數(shù)據(jù)庫(kù)
drop database db_name; 刪除數(shù)據(jù)庫(kù)
create database db_name;創(chuàng)建數(shù)據(jù)庫(kù)
一個(gè)數(shù)據(jù)庫(kù)對(duì)應(yīng)一個(gè)文件夾
create database if not exists db_name;
show warnings; 查看所有警告
show create databae db_name;查看創(chuàng)建的數(shù)據(jù)庫(kù)
create database if not exists db_name character set gbk;
alter database db_name character set utf8; 修改
use db_name; 使用數(shù)據(jù)庫(kù)
select databse();
?
轉(zhuǎn)載于:https://www.cnblogs.com/jintian/p/11123493.html
總結(jié)
- 上一篇: 迷你世界怎么让牛耕地
- 下一篇: 移动端Rem之讲解总结