Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help for timer task

 
sujendra sugur
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,

i am new to java ranch and i want to update age in my database automatically everyday at particular time.

can anybody tell me how to write timer task for updating age daily.

thank you

Sujendra
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which part are you having problems - using a timer task, using JDBC, the SQL code for this, or something else? What do you have so far, and where are you stuck making progress?
 
Fatih Keles
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sujendra,

I have never heard of an age column in database, this is the first time! It is either a poor database design or I am missing something.
Anyway I would recommend you to consider your design. Just have the date of birth column instead of age. Or should you please inform about your age column and purpose, since I am curious about it.

Regards,

Fatih.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic