Home  >  Article  >  Database  >  Detailed introduction to the basics of MySQL

Detailed introduction to the basics of MySQL

黄舟
黄舟Original
2017-08-01 10:57:301345browse

Database is a basic tool that software developers must master. The process of running software is the process of operating data. The data in the database is nothing more than a few operations: add-deletion-check-modify.

1. After the Mysql installation is completed, you need to configure the variable environment, find the configuration path path, and then import the bin file in the mysql installation directory.

Then run cmd to enter dos.

After entering dos, enter: mysql -uroot -p password

2. Then you can enter the mysql operating environment. As shown below: After logging in, I executed a:

show databases command to view all libraries.

Detailed introduction to the basics of MySQL

3. Create a table and then view the data structure of the table

Detailed introduction to the basics of MySQL

4.Delete a field

Detailed introduction to the basics of MySQL

5.Add a field

Detailed introduction to the basics of MySQL

6. Add two pieces of data

Detailed introduction to the basics of MySQL

7. Data modification successful

Detailed introduction to the basics of MySQL

8. The data modification failed, but there was no error. Later, I found out that the function to determine whether it is empty is is null instead of =null

Detailed introduction to the basics of MySQL

9. The modification was successful after changing to is null

Detailed introduction to the basics of MySQL

10. The field was modified successfully

Detailed introduction to the basics of MySQL

11. Multiple pieces of data have been added and the table is completed

Detailed introduction to the basics of MySQL

12. Query the table with id=1

Detailed introduction to the basics of MySQL

13. Enter the table data with id=1 through the alias

Detailed introduction to the basics of MySQL

14. Query whether there are teachers whose job is null

Detailed introduction to the basics of MySQL

15. Query the female teachers on the specified date

Detailed introduction to the basics of MySQL

16. Multi-condition query

Detailed introduction to the basics of MySQL

17. Query the id whose name ends with e

Detailed introduction to the basics of MySQL

18. Query the

Detailed introduction to the basics of MySQL

#19. Query the name starting with the specified character

Detailed introduction to the basics of MySQL

with z in it

Detailed introduction to the basics of MySQL

#20.id flashback arrangement

Detailed introduction to the basics of MySQL

21.Multi-value sorting

Detailed introduction to the basics of MySQL

22.Male and female grouping

######### ###23. Query the total number of records######

Detailed introduction to the basics of MySQL

24.limit paging query

Detailed introduction to the basics of MySQL

The above is the detailed content of Detailed introduction to the basics of MySQL. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn