views:

74

answers:

2

I want that a column of my database, composed by float random numbers, change every x seconds determined by a timer.
I read about Schedule Tasks Events but i can't work it.
Please help

A: 

I'm only familiar with sql server, but could you set up a stored proc with an infinite loop and a wait?

Norla
i've solved the problem with the sql statement commented upi have created a client with Adobe Air which displays in an AdvancedDataGrid with treeview the database content; if i refresh the database, the tree structure collapse, so i want only some fields of the grid refresh.
Franky
+1  A: 

The following statement solve part of the problem, i hope it will be useful for others users:

CREATE EVENT addTimer 
ON SCHEDULE EVERY 2 SECOND 
STARTS CURRENT_TIMESTAMP ENDS CURRENT_TIMESTAMP + INTERVAL 9 HOUR 
DO 
UPDATE prova.prova SET actual = actual + 1
Franky