急!!SQL 时间触发如何解决
有两张表A和B,B里面的数据将会根据A里面时间来增加
例如:A结构:A( id int not null, name nvarchar(255) not null , add_time datetime not null)
B结构:B( a_id int not null, a_name nvarchar(255) , b_information ntext )
当给A表增加了两条记录(1,'test1','2010-6-1 15:00:29'), (2,'test','2010-6-2 01:22:22')后
数据库在到了 '2010-6-1 15:00:29' 时间后会自动向B里增加下面的一条记录(1, 'test1','successful')
在到了'2010-6-2 01:22:22' 时间后会自动向B里面增加下面的一条记录(2,'test','successful')
时间都是随机的写入数据库里的,而且数据库记录每天都会有更新,不采用定时计划任务的方法,需要的是随时的,而且不影响数据库的其它操作
请问该怎么办??