About 595,000 results
Open links in new tab
  1. 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:

  2. SQL - Show Tables - GeeksforGeeks

    May 3, 2024 · In SQL Server, there are different ways to list tables within the database such as using INFORMATION_SCHEMA.TABLES View, query system catalog views, dynamic management views (DMVs). The syntax for the querying system views to list the tables in SQL Server: SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE ...

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

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

  5. 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:

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

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

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

  9. MySQL SHOW TABLES: List Tables In a MySQL Database - MySQL …

    Summary: in this tutorial, you will learn how to use the MySQL SHOW TABLES command to query tables in a particular database. To list tables in a MySQL database, you follow these steps: Second, switch to a specific database using the USE …

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

Refresh