请各位帮忙解答问题,asp程序,-------------急
我现在有一个程序,一个客户222购买商品,我有一个临时表a,
序号,num,order_num,money
1,222,5445,230。00
2,222,44334,288。00
3,222,5445,494。00
购买商品后
insert into a (num,order_num,money) values ('222','2344','500.00')
页面要判断同一会员号的money是否超过1200,如果超过就要把他的每笔记录都要insert到其他表中bb中(就是4比记录都insert到bb中)
请问应该怎么写,请帖出代码,谢谢