Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Ankit kumar.
Asked: October 05, 2016 - 2:20 pm UTC
Last updated: October 05, 2016 - 3:31 pm UTC
Version: 11.2.0.4.0
Viewed 10K+ times! This question is
create table t ( x int, y int, z int ); create index i1 on t(x); create index i2 on t(y, z); create index i3 on t(z, x); select 'create index ... on ... (' || listagg(column_name, ',') within group (order by column_position) || ');' inds from user_ind_columns where table_name = 'T' group by index_name; INDS create index ... on ... (X); create index ... on ... (Y,Z); create index ... on ... (Z,X);
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library