Describe table structure

Viewed 542055

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

13 Answers

For SQL Server use exec sp_help

USE db_name;
exec sp_help 'dbo.table_name'

For MySQL, use describe

DESCRIBE table_name;

For SQL, use the Keyword 'sp_help' enter image description here

In DBTools for Sybase, it's sp_columns your_table_name.

Related