当前位置:网站首页>数据库操作语句
数据库操作语句
2022-06-09 06:40:00 【我的天才女友】
- 查询数据库
show databases;
- 选择数据库
use --
- 查看当前所在数据库
select database()
- 创建数据库
create (if not exists) --
- 查看创建数据库信息
show create database --

- 修改数据库名称
原来是有这个语句但是这个语句很危险,容易导致数据库数据消失,所以现在都是克隆数据库复制数据库实现。 - 数据库编码创建数据库
如果不带编码的话是数据据默认的编码,这里默认是在my.cnf中设置。
character 设置编码字符集,collate 设置排序规则,DEFAULT encryption='N’不使用mysql加密。
CREATE DATABASE goods DEFAULT CHARACTER SET utf8 COLLATE
utf8_unicode_ci DEFAULT encryption='N';

- 修改数据库编码
alter database - character set - collate -
- 删除数据库
drop database if exists --
边栏推荐
- Add space after modifying idea format single line comment
- Kotlin 's Null safety
- Quit smoking log_ 01 (day_02)
- YOLOv4解析 | 第二篇:用YOLOv4训练自己的数据集(超级详细完整版)
- Wechat applet page scrolls to the bottom
- Intranet control: nodemcu (esp8266) and Arduino serial port communication
- Mendeley 等文献管理工具在word中插入参考文献的报错解决
- Echo -e print line breaks
- 编译报错: Could not find a package configuration file provided by “CGAL“ ... CGALConfig.cmake 解决方法
- Top view all processes
猜你喜欢

Chapter_ 06 changing the contrast and brightness of an image

【PPO姿态控制】基于强化学习(Proximal Policy Optimization)PPO训练的无人机姿态控制simulink仿真

Quanzhi v3s learning record (12) use of rtl8723bs

UML系列文章(20)基本行为---活动图

Clickhouse2 fragment 2 replica high availability cluster setup and chproxy proxy configuration

Overview of convolutional neural network and simple case

Camtasia 2022发布更新功能介绍

Add space after modifying idea format single line comment

UML series articles (19) basic behavior - interaction diagram

二叉树的递归套路
随机推荐
[raspberry pie 4B deep learning Yolo] Chap.1 configure a Yolo model for raspberry pie (Darknet nnpack) [deep learning moves]
Echo -e print line breaks
Compilation error: could not find a package configuration file provided by "CGAL"... Cgalconfig.cmake solution
Yum command error: rpmdb open failed
PPT导入视频裁剪后,如何裁剪后的视频另存为保存下来?
二叉 树
Text preprocessing of natural language
自己写的小工具,pillow库将图片转为buf
UML series articles (19) basic behavior - interaction diagram
After ppt imports video clipping, how to save the clipped video as?
MySQL version 8.0.28 installation and configuration method graphic tutorial
MongoDB框架零基础入门(未完)
Poor math can you learn machine learning?
zgc 与g1对比 及 color points含义
Chapter_05 使用Opencv相加(融合)两个图像
Excl两列数据对比用VBA实现,如:A列的数据是否在B列出现过
For an experienced software engineer, what would be a preferred new programming language to learn?
多线程基础(二)
[raspberry pie 4B deep learning garbage classification] Chap.1 configure the raspberry pie with keras+tensorflow [deep learning moves]
UML系列文章(27)體系結構建模---部署