/**Begin C:\Users\RD_geores_li\Desktop\开发工具箱\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FPM_MEMBER', 'T_FPM_MEMBER', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INX_DIMMEMBER_PARENTID') CREATE INDEX INX_DIMMEMBER_PARENTID ON T_FPM_MEMBER ( FPARENTID );


 EXEC P_ALTERPK 'PK_T_FPM_MEMBER_L', 'T_FPM_MEMBER_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INX_MEMBERL_NAME') CREATE INDEX INX_MEMBERL_NAME ON T_FPM_MEMBER_L ( FNAME );


 EXEC P_ALTERPK 'PK_T_FPM_MEMBER_E', 'T_FPM_MEMBER_E', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'INX_MEMBERE_WAYS') CREATE INDEX INX_MEMBERE_WAYS ON T_FPM_MEMBER_E ( FWAYS );


/**End C:\Users\RD_geores_li\Desktop\开发工具箱\PDM_UPGRADE\PDMNEW\FPM_constraint.sql **/
