Home  >  Article  >  Database  >  What is the sql command to view the table structure?

What is the sql command to view the table structure?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-05-25 10:03:5935576browse

The sql command to view the table structure is "desc table name". The specific viewing method is: first open the mysql console and enter the password; then enter "use database name" and press the Enter key on the keyboard; Finally, enter "desc table name;" and press the Enter key on the keyboard to view the table structure.

What is the sql command to view the table structure?

The operating environment of this tutorial: windows7 system, mysql5.6 version, Dell G3 computer.

Open the mysql console and enter the password

What is the sql command to view the table structure?

After the verification is passed, enter "use database name" and press the Enter key

What is the sql command to view the table structure?

Enter the "desc table name;" sql statement and press the Enter key

What is the sql command to view the table structure?

After pressing the Enter key, you can see the table Structure

What is the sql command to view the table structure?

Related learning recommendations: mysql tutorial(video)

The above is the detailed content of What is the sql command to view the table structure?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn