当前位置:网站首页>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
边栏推荐
- [raid] [simple DP] mine excavation
- 10 smart contract developer tools that miss and lose
- Parental delegation mechanism
- Chapter 1: King Shehan miscalculated
- 5- (4-nitrophenyl) - 10,15,20-triphenylporphyrin ntpph2/ntppzn/ntppmn/ntppfe/ntppni/ntppcu/ntppcd/ntppco and other metal complexes
- 44. Concurrent programming theory
- Cesiumjs 2022 ^ source code interpretation [7] - Analysis of the request and loading process of 3dfiles
- P5.js development - setting
- 2022 Xinjiang latest construction eight members (standard members) simulated examination questions and answers
- Chapter 2: find the box array, complete number in the specified interval, and improve the complete number in the specified interval
猜你喜欢

Leetcode 1189. Maximum number of balloons (special character count)

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

Xctf attack and defense world crypto master advanced area olddriver

2.3 other data types

FPGA 学习笔记:Vivado 2019.1 工程创建
![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](/img/5b/fc776a1982e24b82984d82be6a016f.jpg)
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

Vscode reports an error according to the go plug-in go get connectex: a connection attempt failed because the connected party did not pro

PR FAQ: how to set PR vertical screen sequence?

FAQs for datawhale learning!

Today's work summary and plan: February 14, 2022
随机推荐
Use of aggregate functions
BOC protected alanine porphyrin compound TAPP ala BOC BOC BOC protected phenylalanine porphyrin compound TAPP Phe BOC Qi Yue supply
Strict data sheet of new features of SQLite 3.37.0
Pat grade B 1009 is ironic (20 points)
Basic command of IP address configuration ---ip V4
Find a line in a file and remove it
Win10 share you don't have permission
3. Data binding
Ae/pr/fcpx super visual effects plug-in package fxfactory
Utilisation de base du cadre unitest
unittest框架基本使用
Day10 ---- 强制登录, token刷新与jwt禁用
The simplicity of laravel
Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
Unittest framework is basically used
P5.js development - setting
Micro service knowledge sorting - three pieces of micro Service Technology
Global and Chinese market of charity software 2022-2028: Research Report on technology, participants, trends, market size and share
6. Data agent object Defineproperty method
Chapter 1: seek common? Decimal and S (D, n)