insert into table2
select top 3 keywords,hits from table1
order by hits desc作业时间安排在:每月的1日0点0分

解决方案 »

  1.   

    insert语句中不用指定列名和values啊?
      

  2.   

    另外,如果有三张表,table1,table2,table3,table1记录所有keywords,table2中有字段keywords,username,price,用于记录用户对某个keywords的出价记录。我现在要将table1中的keywords在table2中出价前三高的用户记录到table3中。我现在在程序中的做法是先检索table1中的所有keywords,对每个keywords查询table2中哪三个用户的price最高,将这些用户记录到table3中。不知用job怎么实现?
      

  3.   

    insert into table2(keywords,hits)
    select top 3 keywords,hits from table1
    order by hits descJOB的建立你应该会吧
      

  4.   

    可以将它写成存储过程,然后在JOB中调用