Sentence arrangement that must be learned by beginners of mysql
This article mainly introduces "sentence arrangement that must be learned by beginners of mysql". In daily operation, I believe that many people have doubts about sentence arrangement that must be learned by beginners of mysql. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "sentence arrangement that must be learned by beginners of mysql". Next, please follow the editor to study!
MySQL add columns, modify columns, delete columns ALTER TABLE: add, modify, delete table columns, constraints and other table definitions.
View column: desc table name
Modify the table name: alter table old _ name rename to new_name
Add column: alter table table name add column column name varchar
Delete column: alter table table name drop column column name
Modify column name: alter table table name change old_name new_name character type
Modify column properties: alter table table name modify column name varchar (10)
At this point, the study of "sentence arrangement that must be learned by beginners of mysql" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!