About 24,400,000 results
Open links in new tab
  1. SQL Show Indexes - GeeksforGeeks

    Jan 10, 2025 · The SHOW INDEXES statement is an essential tool for managing and optimizing indexes in SQL databases. By providing detailed information about the indexes in a table, it allows database administrators to monitor and adjust the indexing strategy based on query performance.

  2. sql - Query to check index on a table - Stack Overflow

    Jan 19, 2017 · On SQL Server, this will list all the indexes for a specified table: select * from sys.indexes where object_id = (select object_id from sys.objects where name = 'MYTABLE') This query will list all tables without an index: SELECT name FROM sys.tables WHERE OBJECTPROPERTY(object_id,'IsIndexed') = 0

  3. How to see indexes for a database or table in MySQL?

    Mar 6, 2011 · To query the index information of a table, you use the SHOW INDEXES statement as follows: SHOW INDEXES FROM table_name; You can specify the database name if you are not connected to any database or you want to get the index information of a table in a different database: SHOW INDEXES FROM table_name IN database_name;

  4. MySQL SHOW INDEXES - MySQL Tutorial

    To query the index information of a table, you use the SHOW INDEXES statement as follows: To get the index of a table, you specify the table name after the FROM keyword. The statement will return the index information associated with the table in the current database.

  5. SQL Indexes - GeeksforGeeks

    Apr 17, 2025 · SQL Indexes are crucial elements in relational databases that greatly improve data retrieval speeds by minimizing the need for full table scans. By providing quick access paths, indexes allow queries to perform faster, especially on large datasets.

  6. How to display SQL Server table indexes? - Stack Overflow

    Sep 29, 2014 · I need to list/display all the clustered and non clustered indexes contained by a table. How can I do that using SQL Server 2008 R2? How about this: TableName = t.Name, i.* sys.indexes i. sys.tables t ON t.object_id = i.object_id. T.Name = 'YourTableName'

  7. MySQL SHOW INDEX - GeeksforGeeks

    Jul 9, 2024 · There are 3 ways to write a query to SHOW INDEX in MySQL. 1. When the database is already in use: SHOW INDEX from my_table . WHERE [condition]; 2. When specifying the database: SHOW INDEX FROM my_table FROM my_db. WHERE [condition]; 3. Another way to specify the database: SHOW INDEX FROM my_db.my_table. WHERE [condition];

  8. MySQL :: MySQL 8.4 Reference Manual :: 15.7.7.23 SHOW INDEX

    SHOW INDEX returns table index information. The format resembles that of the SQLStatistics call in ODBC. This statement requires some privilege for any column in the table. Table: city. Non_unique: 0. Key_name: PRIMARY. Seq_in_index: 1. Column_name: ID. Collation: A. Cardinality: 4188. Sub_part: NULL. Packed: NULL. Null: Index_type: BTREE.

  9. 4 Ways to List All Indexes in a SQL Server Database

    Sep 22, 2024 · In this article, we’ll explore four ways to retrieve information about all indexes in a SQL Server database. The simplest way to list all indexes in our database is by querying the sys.indexes system view. Here’s a basic query: OBJECT_SCHEMA_NAME(object_id) AS SchemaName, OBJECT_NAME(object_id) AS TableName, name AS IndexName,

  10. SQL SHOW INDEXES - Java Guides

    Knowing how to display indexes on a table is essential for understanding and managing your database schema. This chapter covered the basic syntax for showing indexes in MySQL, SQL Server, and PostgreSQL, provided examples to illustrate its use, and demonstrated how to interpret the output.

Refresh