当前位置:网站首页>Basic operations of MySQL database (I) --- Based on Database
Basic operations of MySQL database (I) --- Based on Database
2022-07-28 00:43:00 【*Black heart radish three bars*】
1. Create database
create database + Database name ;
for example : I need to create test1 database , The specific operation and results are shown in the figure below

2. Display database
(1) Show all databases
show databases;for example : I need to display all databases , The specific operation and display results are as follows

( Be careful :information_schema、mysql、performanse_schema、sys These three libraries come with the system ,test1、db1 These two libraries are the ones I created .)
(2) Display the specified database
show create database + Library name ;for example : Show specific test1 library , The specific operation and results are as follows

3. Select database
use + Library name ;for example : The library I need to select is test1, Then the specific operation and results are as follows

4. Delete database
drop database + Library name ;for example : The database I need to delete is db1, Then the actual operation and results are as follows

5. Change database name
alter database + name + Options ;// Because this command can only be used on the old version , So I won't show it here 边栏推荐
- MATLAB | 那些你不得不知道的MATLAB小技巧(四)
- Threejs personal notes
- 英特尔携手汉朔、微软,释放“AI + 零售”大招!
- threejs个人笔记
- Prepare for the interview and stick to the third sentence of the question - Branch sentences!
- 【读书会第13期】音视频文件的封装格式
- Applet helps smart home ecological platform
- 服务器中毒了——菜是原罪
- 点分治解析
- 【Meetup预告】OpenMLDB+OneFlow:链接特征工程到模型训练,加速机器学习模型开发
猜你喜欢

See how well-known enterprises use Web3 to reshape their industries

The server is poisoned - the dish is the original sin
![[BRE]软件构建发布自动化](/img/c6/daead474a64a9a3c86dd140c097be0.jpg)
[BRE]软件构建发布自动化
![[meetup preview] openmldb + ONEFLOW: link feature engineering to model training to accelerate machine learning model development](/img/29/f31fa3af18198754d2433f47c0c556.jpg)
[meetup preview] openmldb + ONEFLOW: link feature engineering to model training to accelerate machine learning model development

mysql数据库的基本操作(三)-——基于字段

ADB path cannot contain 2 spaces remote could n't create file: is a directory

Leetcode 415. string addition and 43. string multiplication

数据可视化-《白蛇2:青蛇劫起》(3)

startUMl

推进云网融合,筑路数字经济:英特尔亮相第五届数字中国建设峰会-云生态大会
随机推荐
Openvino integrates tensorflow to accelerate reasoning
半导体测试设备市场现状:国产化率仍不足10%!
几行代码轻松实现对于PaddleOCR的实时推理,快来get!
Intel AI practice day issue 56 | explore new trends in industry development
【Leetcode】547.省份数量(中等)
点分治解析
永州清洁级动物实验室建设选址注意事项
公司7月来了个软件测试工程师,一副毛头小子的样儿,哪想到是新一代卷王...
Current situation of semiconductor testing equipment Market: the localization rate is still less than 10%!
加拿大法院认定孟晚舟“双重犯罪”成立,引渡程序将继续进行!
FFT 采样频率和采样点数的选取
永州水质检测实验室建设:家具说明
592. 分数加减运算 : 表达式计算入门题
MATLAB | 那些你不得不知道的MATLAB小技巧(二)
【打新必读】魅视科技估值分析,分布式视听产品及解决方案
数据可视化-《白蛇2:青蛇劫起》(3)
[leetcode] 547. Number of provinces (medium)
MATLAB | 那些你不得不知道的MATLAB小技巧(四)
递归求解迷宫问题
JVM memory model