 IF EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FID' AND KSQL_TABNAME='T_PERM_USERPERMDETAIL') DROP INDEX T_PERM_USERPERMDETAIL.IDX_FID;
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_USERPERMDFID' AND KSQL_TABNAME='T_PERM_USERPERMDETAIL') CREATE INDEX IDX_USERPERMDFID ON T_PERM_USERPERMDETAIL ( FID );