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.


Reply via email to