Hi,
In my cross-platform development with ADO I have constructed the following kind of statement for SYBASE and MSSQL:
IF EXISTS (SELECT * FROM sysindexes WHERE id=OBJECT_ID('dbo.table_name') AND name='index_name')
BEGIN
DROP INDEX table_name.index_name
...
END
How would I go about to do something similar in Informix (preferably as a single command as above)?
Thanks in advance,
Anders
In my cross-platform development with ADO I have constructed the following kind of statement for SYBASE and MSSQL:
IF EXISTS (SELECT * FROM sysindexes WHERE id=OBJECT_ID('dbo.table_name') AND name='index_name')
BEGIN
DROP INDEX table_name.index_name
...
END
How would I go about to do something similar in Informix (preferably as a single command as above)?
Thanks in advance,
Anders