当前位置:网站首页>First knowledge of database
First knowledge of database
2022-07-03 20:04:00 【FYHLH】
MySQL It's the best RDBMS(Relational Database Management System, Relational database management system )
Simple database commands :
mysql -u user name -p password : Login data ,
select version(); View the database version number
show databases : View all local databases ;
user Database name : Switch database ;
show tables; View all the table names under the database ;
exit : sign out ;
create user ' user name '@'host' identified by ' password '; Create user
grant all Database name .* to ' user name '@'localhost' : to grant authorization
Authorization can be selected select insert update drop create;
grant all on *.* to user name @localhost
revoke all on *.* user name @localhost;
drop user user name @'localhost';: Delete user ;
show databases: Check the existing database .
show create database Database name : Look at a database
show create database Database name : View a database character set
create database if not exists Database name ; Create a nonexistent database ;
create database if not exists Database name alter character set code Create a nonexistent database And specify the code
alter database Database name character set utf8; Modify database code
drop database Database name : Delete database
create table Table name () : Create table
drop table Delete table
insert int Table name values( data , data ,...): Add data
update from Table name set Modifying data where Where data needs to be modified ;
delete form Table name where Where the data to be deleted ;
select xxx : Write what you check
边栏推荐
- P5.js development - setting
- Day11 - my page, user information acquisition, modification and channel interface
- Utilisation de base du cadre unitest
- 2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)
- Rad+xray vulnerability scanning tool
- The simplicity of laravel
- Detailed and not wordy. Share the win10 tutorial of computer reinstallation system
- Chapter 2: find the box array, complete number in the specified interval, and improve the complete number in the specified interval
- Geek Daily: the system of monitoring employees' turnover intention has been deeply convinced off the shelves; The meta universe app of wechat and QQ was actively removed from the shelves; IntelliJ pla
- 1.5 learn to find mistakes first
猜你喜欢
Point cloud data denoising
Meso tetra [P - (p-n-carbazole benzylidene imino)] phenylporphyrin (tcipp) /eu (tcipp) [pc( α- 2-oc8h17) 4] and euh (tcipp) [pc (a-2-oc8h17) 4] supplied by Qiyue
Upgrade PIP and install Libraries
2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)
Derivation of decision tree theory
Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
The 29th day of force deduction (DP topic)
Chapter 2: 4-digit Kaplan number, search even digit Kaplan number, search n-digit 2-segment sum square number, m-digit ingenious square number without 0, specify the number to form a 7-digit square nu
2022 Xinjiang latest road transportation safety officer simulation examination questions and answers
Chapter 1: recursively find the factorial n of n!
随机推荐
Acquisition and transmission of parameters in automatic testing of JMeter interface
5- (4-nitrophenyl) - 10,15,20-triphenylporphyrin ntpph2/ntppzn/ntppmn/ntppfe/ntppni/ntppcu/ntppcd/ntppco and other metal complexes
Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
Cross compile opencv with contrib
Basic command of IP address configuration ---ip V4
Win10 share you don't have permission
Chapter 1: find all factorial sums, Grand Prix site unified programming, three factorial sums, graphic point scanning, recursive factorial n of n!, Find the factorial n of n!, King Shehan miscalculate
Utilisation de base du cadre unitest
How to check the permission to write to a directory or file- How do you check for permissions to write to a directory or file?
Realize user registration and login
2022 Xinjiang latest road transportation safety officer simulation examination questions and answers
Make a simple text logo with DW
Microservice knowledge sorting - search technology and automatic deployment technology
2022-07-02 advanced network engineering (XV) routing policy - route policy feature, policy based routing, MQC (modular QoS command line)
Sparse matrix (triple) creation, transpose, traversal, addition, subtraction, multiplication. C implementation
Machine learning support vector machine SVM
Initialization and instantiation
2.6 formula calculation
Sword finger offer 30 Stack containing min function
[Yu Yue education] basic reference materials of manufacturing technology of Shanghai Jiaotong University