码迷,mamicode.com
首页 > 其他好文 > 详细

一个表导入到另一个表

时间:2014-10-23 19:07:56      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:io   os   ar   sp   on   art   ad   bs   res   

  delete FROM [GCSDB_ZYB].[dbo].[EMPLOYEES]
 
  SET IDENTITY_INSERT [GCSDB_ZYB].[dbo].[EMPLOYEES] on
  insert [GCSDB_ZYB].[dbo].[EMPLOYEES] (
 [PK_EMPLOYEE_ID]
      ,[FK_EMPLOYEE_TYPE_ID]
      ,[ORG_NO]
      ,[EMPLOYEE_COMPANY]
      ,[EMPLOYEE_CODE]
      ,[EMPLOYEE_NAME]
      ,[EMPLOYEE_NAME_PY]
      ,[EMPLOYEE_SHORT_NAME_PY]
      ,[EMPLOYEE_SEX]
      ,[EMPLOYEE_BIRTHDAY]
      ,[EMPLOYEE_WORK_ADRESS]
      ,[EMPLOYEE_DEPARTMENT]
      ,[EMPLOYEE_DEPT_ID]
      ,[EMPLOYEE_DEPT_PARENT_ID]
      ,[EMPLOYEE_DEPT_ID_PATH]
      ,[EMPLOYEE_DEPT_NAME_PATH]
      ,[EMPLOYEE_IS_FAIL]
      ,[EMPLOYEE_IS_ATTENDANCER]
      ,[EMPLOYEE_JOB]
      ,[EMPLOYEE_TEL]
      ,[EMPLOYEE_BP]
      ,[EMPLOYEE_HOSTEL_TEL]
      ,[EMPLOYEE_LOACATION_TEL]
      ,[EMPLOYEE_WORK_TEL]
      ,[EMPLOYEE_FAX]
      ,[EMPLOYEE_EMAIL]
      ,[EMPLOYEE_OUT_EMAIL]
      ,[EMPLOYEE_PHOTO]
      ,[EMPLOYEE_STAFF_ID]
      ,[EMPLOYEE_CREATE_USER]
      ,[EMPLOYEE_VALID_START_TIME]
      ,[EMPLOYEE_VALID_END_TIME]
      ,[EMPLOYEE_USE_VIRTUAL_HUMAN] 
 
  ) 
     select * from [GCSDB_4].[dbo].[EMPLOYEES]

一个表导入到另一个表

标签:io   os   ar   sp   on   art   ad   bs   res   

原文地址:http://www.cnblogs.com/hbhzz/p/4046454.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!