Archives of the TeradataForum
Message Posted: Mon, 16 Sep 2002 @ 13:57:55 GMT
You are looking for something like an "UPSERT" statement ie. "Update if present else insert" - As far as i know there isn't anything which is close to what you are looking for(using SQL) "Drop if present else Create" - If you were to use the BTEQ client then you could do something like :
3807 is error code returned by "Drop table " statement if a table/view/trigger/procedure is not present.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|