How to view the structure of a table?

Once the table is created, you can also see the structure of the table using the SQL statement, DESC with following syntax

Syntax

DESC tablename;

Example

Write the SQL statement to view the structure of book table.

USE demodb;

DESC book;

Comments

Popular posts from this blog

What SQL can do?

What are different data types to manage data in the columns or fields?

What is SQL?