Hi, Yes, I think such features are best handled using Java tools. For example you could create a user defined function that starts a (Java-) timer. I don't currently see a reason to add such features to the database engine itself.
Regards, Thomas On Mon, Apr 15, 2013 at 9:37 AM, Raj <[email protected]> wrote: > Hello, > > I would like to learn whether H2 also supports 'Create Event' (syntax > given below) or not. I know MySQL supports this but we are using H2 in our > product. so I would like to know the ways H2 supports this *event > scheduling mechanism* in case if any. > > MySQL Create Event: > > CREATE EVENT 'AutoDeleteOldNotifications' > ON SCHEDULE EVERY 1 DAY STARTS '00:00:00' > > DO BEGIN > > DELETE * FROM tableName WHERE datetime< DATE_SUB(NOW(),INTERVAL 30 DAY) > > END > > Thanks, Raj > > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/h2-database?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
