MySQL view information such as self-increment ID and table DDL

Source: Internet
Author: User

MySQL view information such as self-increment ID and table DDL Technology

Maybe yes posted on 2015-01-24 21:50

Original link: http://blog.lmlphp.com/archives/69 from: lmlphp backyard

MySQL View database table related information and the self-increment ID method is as follows:

Method One

Mysql> Show CREATE TABLE table_name\g;*************************** 1. Row *************************** table:table_namecreate table:create Table ' table_name ' (' ID ' int (one) unsigned NO T null auto_increment, ' ArticleID ' int (one) unsigned not NULL, ' abstract ' text is not null, ' content ' text is not NULL, PRIMA RY key (' ID '), key ' ArticleID ' (' ArticleID ')) Engine=myisam auto_increment=8408 DEFAULT charset=utf81 row in set (0.09 SE c) Error:no query specified

Method Two

mysql> show table status like  ' table_name ' \g;*************************** 1.  row ***************************            name: table_name         engine: myisam         version: 10     row_format: dynamic            Rows: 8407 Avg_row_length:  4807    data_length: 40417952max_data_length: 281474976710655    index_length: 177152      data_free: 0 auto_increment: 8408     Create_time: 2015-01-24 13:28:48    Update_time:  2015-01-24 13:30:50     check_time: 2015-01-24 13:30:50       collatiOn: utf8_general_ci       checksum: null create_options:         Comment:1 row in set  (0.56 sec) ERROR: No query specified

Read (64) reviews (0) View comments


MySQL view information such as self-increment ID and table DDL

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.