Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle create table if not exists

DECLARE								-- Oracle
    existing_table number;			
BEGIN
    SELECT count(*) into existing_table FROM ALL_TABLES
    WHERE TABLE_NAME = 'table_name' AND OWNER = 'owner';
    IF existing_table = 1 then
        EXECUTE IMMEDIATE 'DROP TABLE owner.table_name';
    END IF;
END;
/
CREATE TABLE owner.table_name (BDAY DATE, [...]); 
Comment

PREVIOUS NEXT
Code Example
Sql :: sql extract numbers from string 
Sql :: how to login sql server using cmd 
Sql :: mysql cdn link 
Sql :: current date sql 
Sql :: 3 days back in sql server 
Sql :: mysql check datetime equals date 
Sql :: postgresql update auto_increment value 
Sql :: if else in plsql 
Sql :: username sql 
Sql :: java string to sql timestamp 
Sql :: oracle select first result 
Sql :: CALCULATING MONTHS BETWEEN TWO DATES IN POSTGRESQL 
Sql :: oracle list dates without weekends 
Sql :: sql create view 
Sql :: install mysql 5.7 
Sql :: mysql event last execution 
Sql :: oracle get running queries 
Sql :: connect mysql command line 
Sql :: how to select one row in mysql 
Sql :: rename table sql server 
Sql :: mysql 1 hour ago 
Sql :: how to connect postgresql database with java 
Sql :: oracle temporary table 
Sql :: rename table column name in mysql 
Sql :: postgresql subtract date/hours 
Sql :: mysql stored procedure vs function 
Sql :: query to count the number of rows in a table in sqlalchemy 
Sql :: upper case sql 
Sql :: how to change column name in mysql 
Sql :: how to import pymysql through jupyter notebook for windows 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =