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关键字