Drop if exists in netezza

Harry picture Harry · Oct 29, 2014 · Viewed 9.9k times · Source

I need a command to delete a table if that exists in NETEZZA, Something like that:

drop table if exists xxx;

I have searched and tried many but it didn't work. Can you help me here?

Answer

Niederee picture Niederee · Jul 1, 2016

In netezza you can use this syntax:

drop table table_name if exists;