当前位置:网站首页>Database basic commands

Database basic commands

2022-07-06 07:47:00 √ far away

Catalog

Environmental Science

1、 Connect to database

2、 Displays all databases in the system

3、 New database

4、 Create a table using a database

 5、 Add data

6、 Delete data

7、 Modifying data

8、 Query data

9、order by usage

10、limit usage

11、union select usage

12、union select combination information_schema database


Environmental Science

phpstudy2018 MySQL Apache SQLi-labs DVWA

1、 Connect to database

mysql -u root -p

Enter the password and the connection is successful

2、 Displays all databases in the system

show databases;

3、 New database

create database studdent;

4、 Create a table using a database

 5、 Add data

View content

6、 Delete data

7、 Modifying data

8、 Query data

9、order by usage

take result The data in the table is sorted according to the score ;

Display with id by 1,name by 2,score by 3 Sort ;

10、limit usage

11、union select usage

12、union select combination information_schema database

MySQL5.0 There is a version called information_schema The database of , It stores all the information in the database , It's about MySQL Information about all other databases maintained by the server . Such as database name , Table of database , Data type and access right of table column . and 5.0 There is no .

原网站

版权声明
本文为[√ far away]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131859351172.html