IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_GEMAPPING' AND KSQL_COL_NAME ='FNAME')
 ALTER TABLE T_MSPLAN_GEMAPPING ADD (FNAME NVARCHAR(200) DEFAULT ' ' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_GEMAPPING_L' AND KSQL_COL_NAME ='FNAME')
 ALTER TABLE T_MSPLAN_GEMAPPING_L ADD (FNAME NVARCHAR(200) DEFAULT ' ' NOT NULL );