/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCTB_CATEGORYINFO' AND KSQL_COL_NAME ='FFCS') 
 ALTER TABLE T_TCTB_CATEGORYINFO ADD (FFCS VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCTB_CATEGORYINFO' AND KSQL_COL_NAME ='FCZTDSYS') 
 ALTER TABLE T_TCTB_CATEGORYINFO ADD (FCZTDSYS VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCTB_CATEGORYINFO' AND KSQL_COL_NAME ='FCZTDSYSENABLE') 
 ALTER TABLE T_TCTB_CATEGORYINFO ADD (FCZTDSYSENABLE VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCTB_CATEGORYINFO' AND KSQL_COL_NAME ='FFCSENABLE') 
 ALTER TABLE T_TCTB_CATEGORYINFO ADD (FFCSENABLE VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TCTB_APITUDEINFO' AND KSQL_COL_NAME ='FYXSY') 
 ALTER TABLE T_TCTB_APITUDEINFO ADD (FYXSY CHAR(1) DEFAULT ' ' NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_table.sql **/
