Oracle Create Table if it does not exist

前端 未结 4 1047
渐次进展
渐次进展 2020-12-11 03:36

Can anyone point me to the right syntax to use in order to create a table only if it does not currently exist in the database?

I\'m currently programming a Java GUI

4条回答
  •  天命终不由人
    2020-12-11 03:56

    @Archie I would like to answer your question. @Piyas De Sorry for stealing your code :).

    Just a little update of @Piyas De answer.

    BEGIN
        BEGIN
            EXECUTE IMMEDIATE '<>';
        EXCEPTION
            WHEN OTHERS THEN
                IF SQLCODE == -955 THEN
                    RAISE;
                END IF;
        END;
    END;
    

提交回复
热议问题