Hi,
How can I insert values into table only a particular date of each & every month?
Thanks
jaheena
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Mar 3, 2011, 10:14 PM EST
jaheena jamal75 reputationPosted Mar 3, 2011, 10:21 PM EST
When a person registered in this company, then he will get a certain amount of money to him on particular date that who registered. same like that he will get amount on a particular date in each & every month. Please help me.
Thanks
Jaheena
Suthish NairRank #92 · 22.8K reputationPosted Mar 3, 2011, 10:25 PM EST
ShankeyRank #972 · 2.1K reputationPosted Mar 3, 2011, 10:40 PM EST
You can write a storeprocedure and schedule the job using either of the following ways:
1)http://msdn.microsoft.com/en-us/library/ms191439.aspx
2)Using DBMS_JOB package we can schedule the job.
Ex:
DBMS_JOB .SUBMIT
DBMS_JOB .RUN.
Using DBMS_SCHEDULER
SYNTAX FOR CREATING JOB
dbms_scheduler.create_job(
ob_name IN VARCHAR2
job_type IN VARCHAR2
job_action IN VARCHAR2
number_of_arguments IN PLS_INTEGER DEFAULT 0
start_date IN TIMESTAMP WITH TIME ZONE DEFAULT NULL
repeat_interval IN VARCHAR2 DEFAULT NULL
end_date IN TIMESTAMP WITH TIME ZONE DEFAULT NULL
job_class IN VARCHAR2 DEFAULT 'DEFAULT_JOB_CLASS'
enabled IN BOOLEAN DEFAULT FALSE
auto_drop IN BOOLEAN DEFAULT TRUE
comments IN VARCHAR2 DEFAULT NULL);
jaheena jamal75 reputationPosted Mar 3, 2011, 10:55 PM EST
This answer is okey, but one doubt, some month have 28 days or 30 days or 31 days . then what can i do ?
Thanks
Jaheena
Suthish NairRank #92 · 22.8K reputationPosted Mar 7, 2011, 9:19 AM EST