IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_CTRLASSISTDATA' AND KSQL_COL_NAME ='FISPRESET') 
 ALTER TABLE T_BD_CTRLASSISTDATA ADD (FISPRESET CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_CTRLASSISTDATATYPE' AND KSQL_COL_NAME ='FISPRESET') 
 ALTER TABLE T_BD_CTRLASSISTDATATYPE ADD (FISPRESET CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_CTRLASSISTDATATYPE' AND KSQL_COL_NAME ='FBIZCLOUDID') 
 ALTER TABLE T_BD_CTRLASSISTDATATYPE ADD (FBIZCLOUDID VARCHAR(36) DEFAULT ' ' );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_CTRLASSISTDATA_L' AND KSQL_COL_NAME ='FFULLNAME') 
 ALTER TABLE T_BD_CTRLASSISTDATA_L ADD (FFULLNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
 --- drop column --------- 请认真检查该脚本 ------------------- 
 EXEC p_AlterColumn 'T_BD_CTRLASSISTDATA_L', 'FDISPLAYNAME', 'NULL', 'NULL', '1001', 'NULL';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_CTRLASSISTDATATYPE_L' AND KSQL_COL_NAME ='FFULLNAME') 
 ALTER TABLE T_BD_CTRLASSISTDATATYPE_L ADD (FFULLNAME NVARCHAR(255) DEFAULT ' ' NOT NULL );
 --- drop column --------- 请认真检查该脚本 ------------------- 
 EXEC p_AlterColumn 'T_BD_CTRLASSISTDATATYPE_L', 'FDISPLAYNAME', 'NULL', 'NULL', '1001', 'NULL';



