当前位置:网站首页>MySQL statement learning record
MySQL statement learning record
2022-07-04 01:18:00 【Programmer base camp】
1. Library related commands
Create database : create database Library name ;
Query all database names :show databases;
Delete database :drop database Library name ;
Access to database use Library name ;
View your current library :select database();
**
2. Table related commands
Create table :create table Table name (
Name data type ,
>>>>
Name data type );
See the table show tables;
Check all tables in other libraries :show tables from Library name ;**
View table structure :desc Table name ;
Insert table data :insert into Table name ( Property name 1, Property name 2) values( data 1,‘ data 2’);

Query the current table data **: select * from Table name ;**
Delete data :delete from gameinfo where id=1;
Modifying data :update gameinfo set name=‘xq’ where id=2;
Modify the name of the table :rename table The old name of the table to The new name of the table ;
**
3. Other commands
View the current MySQL Server version :select version();
No sign in to mysql Query method when :mysql --version perhaps mysql --V
sign out mysql: exit perhaps \q
4. Grammatical norms
1)mysql Case insensitive
2) Each command ends with a semicolon
3) notes
Single-line comments :# Note text
Single-line comments :-- Note text
Multiline comment :/ Note text /
边栏推荐
- 手机异步发送短信验证码解决方案-Celery+redis
- Gnupg website
- QML add gradient animation during state transition
- 不得不会的Oracle数据库知识点(三)
- 删除所有值为y的元素。数组元素中的值和y的值由主函数通过键盘输入。
- 关于 uintptr_t和intptr_t 类型
- [common error] custom IP instantiation error
- On covariance of array and wildcard of generic type
- Summary of JWT related knowledge
- 12. Go implementation of integer to Roman numeral and leetcode
猜你喜欢

0 basic learning C language - nixie tube dynamic scanning display

Beijing invites reporters and media

A-Frame虚拟现实开发入门

Unity Shader入门精要读书笔记 第三章 Unity Shader基础

On covariance of array and wildcard of generic type
![[error record] configure NDK header file path in Visual Studio](/img/9f/89f68c037dcf68a31a2de064dd8471.jpg)
[error record] configure NDK header file path in Visual Studio

The FISCO bcos console calls the contract and reports an error does not exist

打印菱形图案

Function: store the strings entered in the main function in reverse order. For example, if you input the string "ABCDEFG", you should output "gfedcba".

Technical practice online fault analysis and solutions (Part 1)
随机推荐
Huawei rip and BFD linkage
Employees' turnover intention is under the control of the company. After the dispute, the monitoring system developer quietly removed the relevant services
About uintptr_ T and IntPtr_ T type
Pytest unit test framework: simple and easy to use parameterization and multiple operation modes
be based on. NETCORE development blog project starblog - (14) realize theme switching function
Which insurance products can the elderly buy?
7.1 学习内容
0 basic learning C language - nixie tube dynamic scanning display
Oracle database knowledge points (IV)
Pratique technique | analyse et solution des défaillances en ligne (Partie 1)
MySQL - use of aggregate functions and group by groups
不得不会的Oracle数据库知识点(一)
Decompile and modify the non source exe or DLL with dnspy
技术实践|线上故障分析及解决方法(上)
Function: store the strings entered in the main function in reverse order. For example, if you input the string "ABCDEFG", you should output "gfedcba".
From functional testing to automated testing, how did I successfully transform my salary to 15K +?
Regular expression of shell script value
Meta metauniverse female safety problems occur frequently, how to solve the relevant problems in the metauniverse?
“疫”起坚守 保障数据中台服务“不打烊”
7.1 learning content