Custom - 'Insert else Update' or 'Update else insert'
Posted: Tue Aug 24, 2010 1:17 pm
We have a situation in which we have to 'Insert else Update' or 'Update else Insert'.
It works fine at is is for us. In our project the SKEY are the target tables are generated using Oracle Sequencers which have to called in the Insert statements as they are not - called by Triggers.
So, can we make the SQL to be 'Custom SQL' and have both Update and Insert statements one after the other and expect the same Functionality as Upsert or is it that DataStage or Oracle will treat them as separate 2 SQL statements and will execute both of them.
It works fine at is is for us. In our project the SKEY are the target tables are generated using Oracle Sequencers which have to called in the Insert statements as they are not - called by Triggers.
So, can we make the SQL to be 'Custom SQL' and have both Update and Insert statements one after the other and expect the same Functionality as Upsert or is it that DataStage or Oracle will treat them as separate 2 SQL statements and will execute both of them.