mysql> 12 simple but staple commands
生活随笔
收集整理的这篇文章主要介绍了
mysql> 12 simple but staple commands
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
Edit at: 2019-12-28 16:52:42
- 1.mysql -u+username -p+password --> connect mysql
- 2.use databasename --> select database
- 3.show databases --> show all databases in your mysql server
- 4.show tabels --> show all tables which are in selected database
- 5.create database database_name [charset charset_name] -->create database
- 6.drop database database_name --> delete database which named database_name
- 7.create table table_name(
var1 type,
var2 type) --> create table table_name and its inside structure
- 8.drop table table_name --> delete table which called table_name
- 9.rename table old_table_name to new_tabl_name --> change your table's name
- 10.insert into table_name values (key1, value1), (key2, value2) -->insert dataline to a table
- 11.truncate table_name --> clear a table with a efficient way
- 12.select * from table_name --> show all datalines of table table_name
总结
以上是生活随笔为你收集整理的mysql> 12 simple but staple commands的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: PHP判断访问来源是PC端还是移动端
- 下一篇: Java语法基础-final关键字