insert 表 (列1,时间) select 列,getdate() from 表2 where xx='xx'

解决方案 »

  1.   

    insert 表 (列1,时间) select 列,getdate() from 表2
      

  2.   

    insert yourtable1(col1,datetimecol) select colname,getdate() from yourtable2
      

  3.   

    考虑到不同列和顺序问题,你可以先用select语句将table1中的字段值取出来赋给变量,
    第二步再insert table2(cols,date_col) values(@value,getdate())
      

  4.   

    使用 convert(char(10),getdate(),120)