/*发票合并规则表添加排序序号字段*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEMERGERULE' AND KSQL_COL_NAME ='FORDER') 
 ALTER TABLE T_ER_INVOICEMERGERULE ADD (FORDER INT DEFAULT 0 NOT NULL );