当前位置:网站首页>MySQL Data Definition Language DDL common commands
MySQL Data Definition Language DDL common commands
2022-07-03 09:36:00 【chenhyc】
【1】 Sign in mysql database ( When the environment variable is not set ):
(1)cmd, Get into mysql The installation directory bin
cd C:\Program Files\MySQL\MySQL Server 5.7\bin
(2) Input :mysql -u root -p, Input mysql password , Sign in 
【2】 Create database :create database Database name ;
remarks : It ends with a semicolon 
【3】 Query the database :show databases;
【4】 Query the name of the created database :show create database hss;
【5】 Delete database :drop database Database name ;
【6】 Query supported storage engines :show engines \g
remarks :yes Indicates that it can be used ,no Indicates not available ,default Indicates the current default storage engine 
【7】 Using a database :use Database name ;
【8】 Check how many tables the database uses :show tables;
【9】 Query table structure :desc The name of the table ;
【10】 Add table column structure :alter table The name of the table add Column name type ;
【11】 Modify table name :rename table Original table name to New table name 
【12】 Create a column structure :create table The name of the table ( Column name 1 type , Column name 2, type );
【13】 Change the character set to gbk:alter table The name of the table character set gbk;
【14】 View the creation details of the table :show create table The name of the table ;
【15】 Change the column name of the table :alter table The name of the table change Original column name New column names data type ;
【16】 Delete table :drop table The name of the table ;
边栏推荐
- Make the most basic root file system of Jetson nano and mount NFS file system on the server
- 小王叔叔的博客目录【持续更新中】
- Modify idea code
- Word segmentation in full-text indexing
- Jestson nano custom root file system creation (supports the smallest root file system of NVIDIA Graphics Library)
- Jetson Nano 自定义启动图标kernel Logo cboot logo
- Go language - JSON processing
- Jestson Nano自定义根文件系统创建(支持NVIDIA图形库的最小根文件系统)
- Powerdesign reverse wizard such as SQL and generates name and comment
- Call the contents of Excel cells opened at the same time - button line feed
猜你喜欢
![[kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions](/img/a3/b442508af9b059d279cffb34dee9bf.png)
[kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions

Hudi learning notes (III) analysis of core concepts

Hudi integrated spark data analysis example (including code flow and test results)

Principles of computer composition - cache, connection mapping, learning experience
![[kotlin learning] classes, objects and interfaces - define class inheritance structure](/img/66/34396e51c59504ebbc6b6eb9831209.png)
[kotlin learning] classes, objects and interfaces - define class inheritance structure

Run flash demo on ECS

Flink learning notes (VIII) multi stream conversion

Win10安装ELK

CATIA automation object architecture - detailed explanation of application objects (III) systemservice

Flink学习笔记(十一)Table API 和 SQL
随机推荐
Nodemcu-esp8266 development (vscode+platformio+arduino framework): Part 1 -- establishment of engineering template -template
Hudi learning notes (III) analysis of core concepts
PolyWorks script development learning notes (I) - script development environment
Patent inquiry website
LeetCode每日一题(2109. Adding Spaces to a String)
解决Editor.md上传图片获取不到图片地址问题
Leetcode daily question (2305. fair distribution of cookies)
Equality judgment of long type
LeetCode每日一题(1300. Sum of Mutated Array Closest to Target)
Jestson Nano自定义根文件系统创建(支持NVIDIA图形库的最小根文件系统)
Jetson Nano 自定义启动图标kernel Logo cboot logo
Jestson Nano 从tftp服务器下载更新kernel和dtb
Flink learning notes (VIII) multi stream conversion
用Redis实现分布式锁
基于opencv实现桌面图标识别
Hudi quick experience (including detailed operation steps and screenshots)
Spark 结构化流写入Hudi 实践
[set theory] order relation (eight special elements in partial order relation | ① maximum element | ② minimum element | ③ maximum element | ④ minimum element | ⑤ upper bound | ⑥ lower bound | ⑦ minimu
制作jetson nano最基本的根文件系统、服务器挂载NFS文件系统
unbuntu(debian)下TFTP服务器搭建及测试