Search
 
SCRIPT & CODE EXAMPLE
 

SQL

select index table oracle

SELECT *
FROM ALL_INDEXES			-- or DBA_INDEXES or USER_INDEXES
WHERE TABLE_NAME = 'MY_TABLE' AND OWNER = 'MY_OWNER';

-- Indexes columns
SELECT TABLE_NAME, INDEX_NAME, COLUMN_NAME
FROM DBA_IND_COLUMNS		-- or ALL_IND_COLUMNS
WHERE TABLE_OWNER = 'MY_OWNER' AND TABLE_NAME = 'MY_TABLE'
ORDER BY TABLE_NAME, COLUMN_POSITION;
Comment

how to select an index in oracle sql

SELECT  *
FROM    all_indexes
WHERE   table_name = 'COUNTRY';
Comment

PREVIOUS NEXT
Code Example
Sql :: alter table add column forigen key mysql 
Sql :: begin transaction in sql 
Sql :: postgres type cast to string 
Sql :: mysql query to check record exists in database table or not 
Sql :: mysql show attributes of a table 
Sql :: sql where max date 
Sql :: how to add where command in update comand with joins 
Sql :: To count number of rows in SQL table 
Sql :: select all tables sql 
Sql :: execute mysql file 
Sql :: sql show all users 
Sql :: mysql extract month from date 
Sql :: how to get nears location in mysql with latitude and longitude 
Sql :: pluck in query builder 
Sql :: postgresql dump and restore db 
Sql :: SQL Auto Increment Primary Key - SQL Server 
Sql :: SQL Server rename foreign key constraint 
Sql :: postgres set column based on another column 
Sql :: cannot drop database because it is currently in use 
Sql :: How do I modify a MySQL column to allow NULL? 
Sql :: how to extract year from date in sql 
Sql :: mysql update add to existing value 
Sql :: mysql replace string in table 
Sql :: oracle select first row order by 
Sql :: postgresql get today 
Sql :: import all databases mysql 
Sql :: sql server change schema of a table 
Sql :: excel export from sql using python 
Sql :: sql #region 
Sql :: How to check if the column exists in sql table 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =