Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to create a dynamic environment, where the schema and table name keeps on changing.
Issue:
I want to drop a table during partial reload. !
Can this be done ?
Can we write something like:
If(Tables Exists !)
{ Drop it! }
Else
{ Proceed }
Thanks & Regards
Swapneel
Sure
if you have table with name "tab" and want to delete it, than script will be
if not isnull(TableNumber('tab')) then
{ Drop it! }
Else
{ Proceed }
end if;
Try defining a variable for your table name
Hello!
You can use this
if not isnull(TableNumber('your table name')) then
Sergey
Hey Sergey,
Didnt follow you exactly, can you please elaborate. ?
Thanks
Swapneel
Sure
if you have table with name "tab" and want to delete it, than script will be
if not isnull(TableNumber('tab')) then
{ Drop it! }
Else
{ Proceed }
end if;
Thanks Sergey
It works
Thanks a ton