1. What database
2. Classification of databases
Relational database (understand)
Non-relational database
3. MySQL database
MySQL directory structure
MySQL client/server
Related terms
SQL
MySQL client type
MySQL login
4. Database operation
View database
Create database
View database creation command
Delete database
5. Set client character set
6. Data table operation
Select database
View data table
Create data table
View the creation statement of the data table
Delete the table
The impact after creating the table
The impact after deleting the data table
Data type
7. Data type
Numeric type
String
8. Data operation
Insert data
Update data
Query statement
Delete data
9. Data type
Numeric type
String
Date time type
10. [Additional attributes] Column attributes
not null value
default default value
unique unique
auto_increment self-increment
primary key
12. Column attribute operations
View column attributes
Delete not null constraint
Delete default
Delete unique
Delete auto_increment self-increment attribute
Delete primary key
Add primary key
Add unique
Compound primary key
Simulate primary key
13. Add column attributes by modifying the table structure
Add not null
Add default
Add auto_increment
Add unique
Add primary key
14. Modification of table structure
Add fields
Delete fields
Modify field type
Modify field name
Modify table name
16. Advanced operations
Copy table structure
Create table Simultaneously copy table data
Batch insert data
Worm replication
Primary key conflict (update)
Primary key conflict (replacement)
十7. Advanced query
[all|distinct]
*
##Field aliasTable aliasData source[where clause][group by clause][having clause][order by clause][limit Clause】18. SubqueryWhat is a subquery? Classification of subqueries19. Relationship (understanding)What is a relationshipClassification of relationships20. foreign key foreign keyStorage engine (understand)MySQL storage engine (understand)Foreign key creationAdd foreign key by modifying the table structure Deletion of foreign keysConstraints of foreign keys 21. Character set and verification setViewCorrection Verification set (understanding)Verification set classification22. Joint queryWhat is the joint querySyntax: Function23. Connection queryCross joinInner joinOuter joinNatural join (understand)using keywords24. Database backup and restoration (understanding)Physical backupData backup and restorationsql Backup25. Transaction SecurityTransactionTransaction Security26. MySQL Transaction ClassificationAutomatic TransactionManual transactionRollback point in transaction27. ACID of transaction (understand)28.Permission operationCreate userView userAuthorize userRemove user permissionDelete userModify user password Twenty-nine, PHP operation MySQLLog inSet character setSelect the databaseOperation database according to needs①. Insert data
②. Update data
③. Delete data
④. Query data
Thirty-one, SQL Statement execution function
32. Get the number of affected rows
The above is the detailed content of Summary of MySQL basic knowledge. For more information, please follow other related articles on the PHP Chinese website!