Set preloaded statement in target table?
Posted: Wed Dec 08, 2010 12:56 am
I want to load data into a target table that it has time_key (yyyymm).
I may reload data few time to this table. For second time reload, i need to delete the data which belong to the same time_key to avoid duplicated record.
Currently what i am doing is i create a job
Seq file > Transformation > odbc (in enter sql > delete from xxx where time_key=201011), something like workaround.
Is the any better way to set the delete statement in target table before the real data is load into the table?
Thanks.
I may reload data few time to this table. For second time reload, i need to delete the data which belong to the same time_key to avoid duplicated record.
Currently what i am doing is i create a job
Seq file > Transformation > odbc (in enter sql > delete from xxx where time_key=201011), something like workaround.
Is the any better way to set the delete statement in target table before the real data is load into the table?
Thanks.