用sql语句将一个数据库的数据表导入另一个数据库(sqlserver)

SELECT  [stock_code]
      ,[stock_date]
      ,[factor_name]
      ,[factor_value]
      ,[frequency]
      ,[update_time]
      ,[flag]
      ,[stamp]
      into [stk_per_attribution].[dbo].[t_stock_factor]
  FROM [chinatimes_fof_bak].[dbo].[t_stock_factor]

将字段都写好,然后指定目标数据库从需要导出数据表的数据库,完成

猜你喜欢

转载自blog.csdn.net/lzz781699880/article/details/88397424