/**Begin D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_GENBALANCELOG' AND KSQL_COL_NAME IN ('FDELETETIME'))
 ALTER TABLE T_BEI_GENBALANCELOG ADD (FDELETETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BEI_TRANSDETAIL' AND KSQL_COL_NAME IN ('FFRMCOD'))
 ALTER TABLE T_BEI_TRANSDETAIL ADD (FFRMCOD NVARCHAR(255) DEFAULT ' ' NOT NULL );
 --- drop column --------- 请认真检查该脚本 -------------------
 EXEC p_AlterColumn 'T_BEI_TRANSDETAIL', 'FTRANSDESC', 'NULL', 'NULL', '1001', 'NULL';


/**End D:\PDM_UPGRADE\PDM1\BEI_table.sql **/
