Mysql Command for viewing table structure and table creation, mysql Command for viewing table structure
1, desc tablename;
mysql> desc authors;+-------+--------------+------+-----+---------+----------------+| Field | Type | Null | Key |
MySQL常用指令,java,php程序员,数据库工程师必备。程序员小冰常用资料整理MySQL common commands (for reference)The most common display commands are:1. Display the list of databases.show databases;2. Display the data table in the library:Use MySQL;Show tables;3, display the
Mysql commands are often used by everyone, but few of you can sort them out. there are not many projects recently. you can take a moment to summarize the mysql database commands. if you need them, refer to section 1. connect to Mysql.
Format:
MySQL table Structure Modification Operation Command summary, mysql table structure command
The table structure is as follows:
Copy codeThe Code is as follows:Mysql> show create table person;| Person | create table 'person '('Number' int (11)
MySQL is a relational database management system, because of its small size, fast, low total cost of ownership, especially the open source of this feature, the general development of small and medium-sized web sites have chosen MySQL as a Web site
In order to better optimize MySQL in high concurrency, it is necessary to understand the locking table mechanism when MySQL query is updated.I. OverviewMySQL has three levels of Lock: page level, table level, row level.MyISAM and MemoryStorageThe
Mainly introduces the commonly used MySQL commands, including the connection database, the modification password, manages the user, the operation database, the Operation data table, the database backup and so on, each order has the example
MYSQL command, mysqlcommandMysql Command [to]
From: http://www.cnblogs.com/zhangzhu/archive/2013/07/04/3172486.html
1. Connect to MYSQL on the local machine.First, open the DOS window, enter the mysql \ bin directory, type the mysql-u root-p
Mysql common command lines
Mysql common command lines
First, start and stop the mysql Service
Net stop mysql
Net start mysql
Second, log on to mysql
Syntax: mysql-u user name-p User Password
Enter the mysql-uroot-p command, press enter and prompt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.