IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_INT_USERLANG') 
 CREATE TABLE T_INT_USERLANG (
FID BIGINT DEFAULT 0 NOT NULL,
FUSERID BIGINT DEFAULT 0 NOT NULL,
FLANGID BIGINT DEFAULT 0 NOT NULL
);



EXEC P_ALTERPK 'PK_T_INT_USERLANG', 'T_INT_USERLANG', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_INT_USERLANG_USER') CREATE INDEX IDX_T_INT_USERLANG_USER ON T_INT_USERLANG ( FUSERID );

