here the question bored me,I'm waiting for some advices
one table store exact hour in integer
teq(teq_time interger,----exact hour,such as 10 for 10:00:00
cond varchar(24))
extend(extend((current- interval(1) day to day),year to day),year to second) + teq_time;
eg,teq_time=10
such as current time is 2005-10-27 12:00:00
my procedure should return as 2005-10-26 10:00:00
cause interval () hour to second is not allowed in variable.
I wanna build one procedure to create time for execute another procedure.another procedure parameter is datetime year to second.
how can i do?