I'm working in Sybase 15 SQL, in stored procedures. I want to identify the indices on a temporary #table. The usual techniques work on a permanent table but don't work on a temp table:
--look for an index on a temporary table
create table #T1( duff int)
create index idx99 on #T1(duff)
select * from sysindexes where name = 'idx99' --returns null rows !
--Look for an index on a permanent table
create table T1( duff int)
create index idx99 on T1(duff)
select * from sysindexes where name = 'idx99' --returns a row. OK for perm table.
Any ideas?
Bob