SQLUPIWIJAiqSXKINULLID 0 INCLUDE SQLCA BEGIN DECLARE SECTION END DECLARE SECTION DECLARE cindex CURSOR FOR SELECT NAME, CREATOR, TBNAME, TBCREATOR, COLNAMES, UNIQUERULE, COLCOUNT FROM SYSIBM.SYSINDEXES WHERE TBNAME=:sqluei_table_name AND TBCREATOR=:sqluei_table_authid OPEN cindex FETCH cindex INTO :ai_name , :ai_creator , :ai_tbname , :ai_tbcreator , :ai_colnames , :ai_uniquerule , :ai_colcount CLOSE cindex sqluei_table_name sqluei_table_authid ai_name ai_creator ai_tbname ai_tbcreator ai_colnames ai_uniquerule ai_colcount