运行自动脚本时,我希望只有在不存在的情况下才能创建表。
netezza
是否有办法在不抛出错误的情况下对此进行评估?
答案 0 :(得分:4)
从7.2.1开始,这可以实现。
create table IF NOT EXISTS table_name
( field_name varchar(10))
相反
You can can use if exists
to only drop tables that exist.
drop table table_name if exists;