Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle create job if not exists

DECLARE
    l_job_exists NUMBER;
BEGIN
    SELECT count(*) INTO l_job_exists
    FROM all_scheduler_jobs WHERE job_name = 'job_name' AND OWNER = 'owner';
    IF l_job_exists = 1 THEN
        dbms_scheduler.drop_job(job_name => 'job_name');
    END IF;
END;
/
BEGIN DBMS_SCHEDULER.CREATE_JOB(job_name => '"owner"."job_name"', ...); END;
Comment

PREVIOUS NEXT
Code Example
Sql :: VSCode SQL Server Connection error 
Sql :: how to reset AI in sql 
Sql :: postgresql inline table 
Sql :: Reduce size of SQL server log file truncate - Source :NAYCode.com 
Sql :: oserror mysql_config not found virtualenv 
Sql :: loop through a table variable in TSQL without using a cursor 
Sql :: laravel How to find the password of mysql on desktop docker in laravel 
Sql :: datagrip go to line 
Sql :: get many value to 1 column sql 
Sql :: oracle query archivemode 
Sql :: add sql file to seeder 
Sql :: select concat alter table mysql 
Sql :: PostgreSQL random boolean for generate test values 
Sql :: clickhouse greatest non-aggregate 
Sql :: psql 
Sql :: mysql start of today 
Sql :: sql queries for interview 
Sql :: union in sql 
Sql :: union and union all 
Sql :: Executing an update/delete query 
Sql :: convert google analytics dathourminute to time stamp? sql 
Sql :: why do we need data structure in sql 
Sql :: add column mssql 
Csharp :: c# minimize form 
Csharp :: open link c# 
Csharp :: quit button unity 
Csharp :: make winforms full-screen c# 
Csharp :: how to find object by ag unity 
Csharp :: c sharp list of strings 
Csharp :: c# play sound 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =