About 2,680,000 results
Open links in new tab
  1. SQL | DESCRIBE Statement - GeeksforGeeks

    May 10, 2023 · As the name suggests, DESCRIBE is used to describe something. Since in a database, we have tables, that’s why do we use DESCRIBE or DESC(both are the same) commands to describe the structure of a table. Syntax: DESCRIBE one; OR. DESC one; Note: We can use either DESCRIBE or DESC(both are Case Insensitive).

  2. sql - Describe table structure - Stack Overflow

    Jun 7, 2017 · For SQL Server use exec sp_help. For MySQL, use describe. For Sybase aka SQL Anywhere the following command outputs the structure of a table: Highlight table name in the console and press ALT+F1. OP asked for the query not for a vague steps in a unspecified console. For SQL, use the Keyword 'sp_help' This depends on your database vendor.

  3. How can I show the table structure in SQL Server query?

    Aug 18, 2013 · In SQL Server, you can use this query: USE Database_name SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='Table_Name'; And do not forget to replace Database_name and Table_name with …

  4. How to view table structure in SQL? - TablePlus

    Sep 11, 2019 · To show the table structure with all its column’s attributes: name, datatype, primary key, default value, etc. In SQL Server, use sp_help function: In MySQL and Oracle, you can use DESCRIBE: Or. In PostgreSQL, here is the go-to statement: INFORMATION_SCHEMA.COLUMNS. TABLE_NAME = table_name; In SQLite, it’s …

  5. How to print the structure of a table and its contents in SQL

    Dec 28, 2010 · Two different queries will be used for this. The table to show the table structure is: DESC or DESCRIBE : Used to describe the table structure present in the tablespace. USE : DESC e.g. DESC Employee; USE : SELECT * FROM to view all the data inside the table. e.g. SELECT * FROM Employee.

  6. SQL Server Describe Table - GeeksforGeeks

    May 27, 2024 · In PostgreSQL, the CREATE TABLE statement is used to define a new table within a database. It allows us to specify the table's structure, including column names, data types, and constraints, ensuring data integrity and consistency.

  7. MySQL: 3 ways to see the structure of a table - Sling Academy

    Jan 25, 2024 · The DESCRIBE statement is a simple and quick way to view the basic structure of a table, providing a set of essential details for each column such as field type, nullability, default values, and primary or unique keys.

  8. How to View a Table in SQL: Essential Steps for Database …

    Jun 28, 2023 · This section will discuss how to implement the SELECT statement to view tables in SQL effectively, utilizing the “list tables SQL” keyword. First of all, let’s understand the basic structure of a SELECT statement.

  9. SQL Server Describe Table - Tpoint Tech - Java

    Mar 17, 2025 · Since we have several tables in our SQL Server database, we will need a command to show a table's structure, such as column names, data types, constraints on column names, etc. SQL Server does not have any command to display the table structure like Oracle or MySQL provides DESCRIBE or DESC command. But we have some other way to describe a ...

  10. How to Describe a Table in SQL? - Scaler Topics

    Oct 13, 2022 · DESCRIBE or DESC in SQL is a statement that shows the structure of the table. It gives all the information of each of the columns of the specified table such as column name, column type, default value, if it is NULL or NOT NULL, etc.

  11. Some results have been removed
Refresh