Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Describe table structure

Tags:

sql

database

Which query will give the table structure with column definitions in SQL?

like image 207
Anto Varghese Avatar asked Jul 29 '10 12:07

Anto Varghese


People also ask

How do you describe a table structure?

A table contains columns and indexes. Besides, a table has options such as table type, row format and so on. Defining a table structure means setting up all these elements. To define table structure, create a table or open existing one from Database Explorer.

What is table structure in SQL?

The tables are the database objects that behave as containers for the data, in which the data will be logically organized in rows and columns format. Each row is considered as an entity that is described by the columns that hold the attributes of the entity.

How do you describe a table example?

SQL DESCRIBE TABLE is a SQL statement that is accountable for telling something about a specific table in the database. If we want to show the structure of a database table or tables in the server then, we will use the SQL command DESCRIBE or other keyword DESC, which is identical to DESCRIBE one.

What is table structure in DBMS?

SQL Table is a collection of data which is organized in terms of rows and columns. In DBMS, the table is known as relation and row as a tuple. Table is a simple form of data storage. A table is also considered as a convenient representation of relations.


1 Answers

sp_help tablename in sql server -- sp_help [ [ @objname = ] 'name' ]

desc tablename in oracle -- DESCRIBE { table-Name | view-Name }

like image 150
Pranay Rana Avatar answered Oct 14 '22 23:10

Pranay Rana