/**Begin D:\文档\DBA\PDM_UPGRADE\pdm1\SYS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BAS_ATTACHMENT' AND KSQL_COL_NAME ='FDRAGSEQ')
 ALTER TABLE T_BAS_ATTACHMENT ADD (FDRAGSEQ BIGINT DEFAULT 0 NOT NULL);
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_ATTACHMENT' AND KSQL_COL_NAME ='FDRAGSEQ')
 ALTER TABLE T_BD_ATTACHMENT ADD (FDRAGSEQ BIGINT DEFAULT 0 NOT NULL);
/**End D:\文档\DBA\PDM_UPGRADE\pdm1\SYS_table.sql **/
