Basic mysql command

mysql>

command to show all database:

 

  • show schemas;

Command to choose one database:

  • use <Database name>;

Command to show all existing tables in the chosen database:

  • show tables;

Command to check the columns of a table:

  • describe <tablename>; 

Command to show datas of a table:

  • mysql>  select * from <table name>;

 

posted on 2022-01-21 13:20  guolongnv  阅读(18)  评论(0编辑  收藏  举报