About 1,040,000 results
Open links in new tab
  1. SQL - Show Tables - GeeksforGeeks

    May 3, 2024 · We use a SELECT statement to retrieve the table names from INFORMATION_SCHEMA.TABLES View. The WHERE clause is used to filter the results to include only those rows where the TABLE_TYPE column equals BASE TABLE, ensuring that only user-defined tables are included in the result set.

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

    Jun 28, 2023 · MySQL and MariaDB users can use the SHOW TABLES command. PostgreSQL has the \dt command in the psql command line. SQL Server users can leverage the sys.tables feature or query from the INFORMATION_SCHEMA.TABLES table. For SQLite, the sqlite_master table can be queried. Here’s a quick rundown of how these methods work for each DBMS:

  3. How do I get list of all tables in a database using TSQL?

    Oct 6, 2008 · Adding WHERE TABLE_TYPE='BASE TABLE' will include only base tables (and by extension you could always use WHERE TABLE_TYPE != 'VIEW'). sysdiagrams is a normal table, you always have to exclude it manually with a AND name <> 'sysdiagrams'. Here is a list of other object types you can search for as well:

  4. How to Show/List Tables in MySQL Database - GeeksforGeeks

    Jun 11, 2024 · In MySQL, the SHOW TABLES command is a powerful tool used to list the tables within a specific database. This command provides a convenient way to view the tables that exist in a database without needing to query the database schema directly.

  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. 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 …

  7. SQL Show Tables: List All Tables in a Database

    Jun 2, 2023 · There are a few ways to list tables in SQL Server. All Tables and Views. The easiest way to find all tables in SQL is to query the INFORMATION_SCHEMA views. You do this by specifying the information schema, then the “tables” view. Here’s an example. SELECT table_name, table_schema, table_type FROM information_schema.tables ORDER BY table ...

  8. SQL List All Tables - SQL Tutorial

    Here you can find the respective SQL command to list all tables in MySQL, PostgreSQL, Oracle, SQL Server, DB2, and SQLite. To list all tables in MySQL, first, you connect to the MySQL database server using the following command: Code …

  9. SQL - Show Tables (Listing Tables) - Online Tutorials Library

    Learn how to display tables in SQL with examples and detailed explanations. Master SQL commands related to showing tables efficiently. Explore the SQL command to display tables in your database.

  10. How to view table in SQL Server - DatabaseFAQs.com

    Dec 15, 2021 · In SQL Server, there are commonly two ways to view table definition. The first method is by using SQL Server Management Studio, and the second way is by executing Transact-SQL queries. Let’s discuss both methods in more detail. Read Create a …

Refresh