Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql view index

-- Oracle  (all_indexes: depending on grants, dba_indexes: for all indexes))
SELECT index_name FROM user_indexes WHERE table_name = 'MY_TABLE';
-- List of indexed columns:
SELECT index_name, column_position, column_name
FROM user_ind_columns 		-- or all_ind_columns / dba_ind_columns
WHERE table_name = 'MY_TABLE'  
ORDER BY index_name, column_order;
Comment

PREVIOUS NEXT
Code Example
Sql :: EnvironmentError: mysql_config not found 
Sql :: Select with remove white spaces in sql 
Sql :: add primary key to database sql 
Sql :: sql default value if null 
Sql :: porcentaje sql 
Sql :: how to start my sql server on mac 
Sql :: oracle grant directory 
Sql :: psql check tables command 
Sql :: sql distinct 
Sql :: sql server check for value in multiple columns 
Sql :: decimal() mysql 
Sql :: not between mysql 
Sql :: oracle db timestamp auto add 
Sql :: mssql describe stored procedure sqlcmd 
Sql :: sql to c# model 
Sql :: nested select sql 
Sql :: SELECT everything from a sql table 
Sql :: how to find table lock and row lock in mysql 
Sql :: partition-by 
Sql :: postgres stored procedure 
Sql :: sql update multiple tables 
Sql :: mysql sublime build system 
Sql :: mysql select database 
Sql :: insert data into multiple tables mysql 
Sql :: sqlcmd no headers 
Sql :: datetrunc month sql 
Sql :: excel vba import data to sql server 
Sql :: Failed to process SQL command - ORA-28014: cannot drop administrative user or role 
Sql :: mysqldump password in file 
Sql :: add column first position mysql 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =