SQL 根据一个表的ID去初始化另一个表的值

 insert into [Table1](ColumnA,Id,CreatedOn,CreatedBy)
   select  'Monthly', r.Id,GETDATE(),'System'
   from Table2 as r

 

posted @ 2023-04-27 10:49  katesharing  阅读(13)  评论(0编辑  收藏  举报