Town Yard text:
The Confucian School of the practical and practical, line Buddhism Purdue sentient beings, the monastic Kangsheng fidelity, understanding of the easy to change the image. To science and technology to shine a good law, the achievement of a conscience blog.
______________________________________________________________________________________________________
Operating System:ubuntukylin 16.04 LTS 64bit
Mysql:ver 14.14 Distrib 5.7.17, for Linux (x86_64) using Editline Wrapper
Login:
[Email protected]:~$ mysql-u root-penter password:welcome to the MySQL monitor. Commands End With; or \g.your MySQL connection ID is 10Server version:5.7.17-0ubuntu0.16.04.1 (Ubuntu) Copyright (c), Oracle and/o R its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names trademarks of their respectiveowners. Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.
---view all databases
---into the specified database
---View all tables in the current database
---Inserts a row of data into the specified table
mysql> show databases;+--------------------+| database |+--------------------+| information_schema | | myfirstdb | | mysql | | performance_schema | | phpmyadmin | | sys |+--- -----------------+6 rows in set (0.00 sec) mysql> use myfirstdbreading table information for completion of table and column namesyou can turn off this feature to get a quicker startup with -adatabase changedmysql> show tables; #看看有哪些表 +---------------------+|  tables_in_myfirstdb |+---------------------+| firsttable | | personalinformation |+---------------------+2 rows in set (0.00 sec) MySQL > insert into personalinformation values (0, ' Xinjinzhigang ') - > ; #向 PersonalInformation table INSERT compliant row of data query OK, 1 row affected (0.07 SEC)
Query all data in the specified table:
Code
Mysql> select * from Personalinformation;
Result
+------+---------------+| Nid | Name |+------+---------------+| 0 | Xinjinzhigang |+------+---------------+1 row in Set (0.00 sec)
Exit:
Mysql> Exitbye[email protected]:~$
Here's a small question, how do you know the structure of a given table?
______________________________________________________________________________________________________
If you think this blog post has a place to improve, please comment, I will think carefully.
Note: This blog post is only used for scientific research, if the infringement of your interests, please inform me, I will make the appropriate treatment.
This article is from the "calm mind like water, chi just like the pan." Blog, be sure to keep this source http://xinjingzhigang.blog.51cto.com/12262830/1904213
mysql5.7 Base query specifies all data in a table