We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba10ba commit f55ea6cCopy full SHA for f55ea6c
data-platform/core-converged-db/database-23c/23c-basic-examples/if-not-exists.sql
@@ -0,0 +1,13 @@
1
+REM Script in 23c: if-not-exists.sql
2
+
3
+-- suppose table DEPT exists
4
+desc dept
5
6
+-- try several times, no error occurs
7
+create table if not exists scott.dept (deptno number, dname varchar2(10), loc varchar2(15));
8
9
+-- create a helper table
10
+create table dept1 as select * from dept;
11
12
+-- drop several times, no error occurs
13
+drop table if exists dept1;
0 commit comments