当前位置:网站首页>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
边栏推荐
- Class loading process
- Gym welcomes the first complete environmental document, which makes it easier to get started with intensive learning!
- Day10 -- forced login, token refresh and JWT disable
- Part 27 supplement (27) buttons of QML basic elements
- Micro service knowledge sorting - asynchronous communication technology
- 4. Data binding
- Global and Chinese market of electrolyte analyzers 2022-2028: Research Report on technology, participants, trends, market size and share
- kubernetes集群搭建efk日志收集平台
- An old programmer gave it to college students
- Phpstudy set LAN access
猜你喜欢

2.3 other data types

FPGA learning notes: vivado 2019.1 project creation

Chapter 1: recursively find the factorial n of n!

2.1 use of variables

Xctf attack and defense world crypto master advanced area olddriver

Chapter 1: simplify the same code decimal sum s (D, n)

2022 Xinjiang latest road transportation safety officer simulation examination questions and answers

Phpstudy set LAN access

2022-06-27 网工进阶(十二)IS-IS-开销类型、开销计算、LSP的处理机制、路由撤销、路由渗透

原生表格-滚动-合并功能
随机推荐
Basic command of IP address configuration ---ip V4
Gym welcomes the first complete environmental document, which makes it easier to get started with intensive learning!
4. Data splitting of Flink real-time project
Derivation of decision tree theory
Pat grade B 1009 is ironic (20 points)
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
Micro service knowledge sorting - asynchronous communication technology
2. Template syntax
Global and Chinese market of charity software 2022-2028: Research Report on technology, participants, trends, market size and share
2.1 use of variables
2.4 conversion of different data types
Test panghu was teaching you how to use the technical code to flirt with girls online on Valentine's Day 520
1.5 learn to find mistakes first
CMD implements the language conversion of locale non Unicode programs
2022 Xinjiang latest road transportation safety officer simulation examination questions and answers
Global and Chinese market of rubidium standard 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market of liquid antifreeze 2022-2028: Research Report on technology, participants, trends, market size and share
2022-06-25 advanced network engineering (XI) IS-IS synchronization process of three tables (neighbor table, routing table, link state database table), LSP, cSNP, psnp, LSP
Detailed and not wordy. Share the win10 tutorial of computer reinstallation system
Today's work summary and plan: February 14, 2022