sql 表数据转移另一张表
Posted luoguixin
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 表数据转移另一张表相关的知识,希望对你有一定的参考价值。
begin SELECT * INTO REMOTEDETECTION_2018 FROM REMOTEDETECTION where 1=0 end;
insert into RemoteDetections(DETECTIONSTATE,PASSDATETIME,VLPN,VLPNCOLOR,FUELTYPE,BZTYPE,VEHICLETYPE,RECENTSTATION,CO,CO2,NO,HC,VSP,SPEED,ACCELERATION,CONFIDENCE,WINDSPEED,WINDDIRECTION,
TEMPERATURE,IMPORTDATE,IUVTYPE,OWNERNAME,City_ID,Station_ID,REMOTEDETECTIONCODE,NH3,SF,IMAGEPATH,IMAGE,humidity,atmosphere,Highemissions,IsValid,Islocal,StationCode,CarColor,CarType,
Image1Name,Image1Path,Image2Name,Image2Path,VideoName,VideoPath,VehicleID)
select DETECTIONSTATE,PASSDATETIME,VLPN,VLPNCOLOR,FUELTYPE,BZTYPE,VEHICLETYPE,RECENTSTATION,CO,CO2,NO,HC,VSP,SPEED,ACCELERATION,CONFIDENCE,WINDSPEED,WINDDIRECTION,
TEMPERATURE,IMPORTDATE,IUVTYPE,OWNERNAME,City_ID,Station_ID,REMOTEDETECTIONCODE,NH3,SF,IMAGEPATH,IMAGE,humidity,atmosphere,Highemissions,IsValid,Islocal,StationCode,CarColor,CarType,
Image1Name,Image1Path,Image2Name,Image2Path,VideoName,VideoPath,VehicleID from RemoteDetection where PASSDATETIME>=‘2018-10-08 00:00:00‘ and PASSDATETIME<=‘2018-10-08 23:59:59‘;
以上是关于sql 表数据转移另一张表的主要内容,如果未能解决你的问题,请参考以下文章
oracle 中如何将一张500万数据的表从一个库快速转移到另外一个库