
 EXEC P_ALTERPK 'PK_T_PERM_ADMINGROUPROLE', 'T_PERM_ADMINGROUPROLE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_ADMGRPROLE_GRPID') CREATE INDEX IDX_PERM_ADMGRPROLE_GRPID ON T_PERM_ADMINGROUPROLE ( FADMINGROUPID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_ADMGRPROLE_ROLEID') CREATE INDEX IDX_PERM_ADMGRPROLE_ROLEID ON T_PERM_ADMINGROUPROLE ( FROLEID );

