Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: List table's indexes !
Your script is showing its age, Thomas ;)
8.1.5 (if not sooner) allows up to 32 columns in an index definition. (Not that I would suggest that anyone is likely to use that many).
--
Jonathan Lewis
Yet another Oracle-related web site: http://www.jlcomp.demon.co.uk
Thomas Kyte wrote in message ...
>A copy of this was sent to Pascal-Eric Servais <servpas_at_cognicase.ca>
>(if that email address didn't require changing)
>On Tue, 18 Jan 2000 20:56:12 GMT, you wrote:
>
>>Hi !
>>I am a little green with Oracle DB and working on a "rush" project !
>>(same as usual ;)
>>
>>I just can't figure out how to list all the indexes that are
>>associated to an Oracle table with SQL*Plus.
>>Is anybody could help about that.
>>
>>BTW : If you are aware of any link to good online manuals, like some
>>"Getting started with Oracle", I'd appreciate very much.
>>
>>Thanks !
>>
>>Pascal-Eric.
>>
>>
>>Sent via Deja.com http://www.deja.com/
>>Before you buy.
>
>
>this script might help you out. save it to a file called 'desc'. Then you
can
>do something like:
>
>
>ops$tkyte_at_8i> @desc emp
>Datatypes for Table emp
>
> Data Data
>Column Name Type Length
>Nullable
>------------------------------ ------------------------------ --------- ---
-
>EMPNO NUMBER (4,0) not
null
>ENAME VARCHAR2 10
null
>JOB VARCHAR2 9
null
>MGR NUMBER (4,0)
null
>HIREDATE DATE 7
null
>SAL NUMBER (7,2)
null
>COMM NUMBER (7,2)
null
>DEPTNO NUMBER (2,0)
null
>CATEGORY VARCHAR2 30
null
>
>
>Indexes on emp
>
>Index Is
>Name Unique Indexed Columns
>------------------------------ ------ -----------------------------------
>EMP_IDX1 No SAL
>EMP_PK Yes EMPNO
>
>
>
>
>--------------------------------- script
desc.sql ---------------------------
![]() |
![]() |