-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlsind.sql
More file actions
32 lines (30 loc) · 702 Bytes
/
lsind.sql
File metadata and controls
32 lines (30 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SET VERIFY OFF;
col INDEX_OWNER format a20
col INDEX_NAME format a30
col TABLE_OWNER format a20
col TABLE_NAME format a30
col COLUMN_NAME format a30
col DESCEND format a10
SELECT table_owner,
table_name,
index_owner,
index_name,
column_position,
column_name,
column_length,
char_length,
descend
FROM all_ind_columns
WHERE table_name LIKE UPPER('%&1%')
ORDER BY
table_owner,
table_name,
index_owner,
index_name,
column_position;
col INDEX_OWNER clear
col INDEX_NAME clear
col TABLE_OWNER clear
col TABLE_NAME clear
col COLUMN_NAME clear
col DESCEND clear