码迷,mamicode.com
首页 > 数据库 > 详细

mysql造模拟数据

时间:2020-06-02 16:02:46      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:win   moni   exists   mis   begin   lag   HERE   creat   monitor   

delimiter $$
#DROP PROCEDURE IF EXISTS data
CREATE PROCEDURE data(in i int)
BEGIN
WHILE i < 10000000 DO
INSERT INTO rs_a100000002_2020 (JLBH, VehicleID ,UniqueString ,RSStationCode,MonitorResult,Highemissions,Islocal,PassdateTime,VLPN,VLPNColor,FuelType,CarColor,CarType,VIN,
OwnerName,GAVType,VehicleType,HPZL,FactoryPlateModel,EDSPL,CO,CO2,`NO`,Opacity,RgB,NH3,NOx,HC,COXZ,CO2XZ,OpacityXZ,NH3XZ,NOxXZ,HCXZ,NOXZ,RgBXZ,
COJG,CO2JG,OpacityJG,NH3JG,NOxJG,HCJG,NOJG,RgBJG,HCCO2,NOCO2,COCO2,VSP,SPEED,Acceleration,Humidity,Atmosphere,WindSpeed,WindDirection,Temperature,Slope,VPSFJ,
SPEEDFJ,AccelerationFJ,HumidityFJ,AtmosphereFJ,WindSpeedFJ,WindDirectionFJ,TemperatureFJ,CountyCode,DDJD,DDWD,GJXXBH,YCXBH,Lane,Image1Name,Image1Path,Image2Name,Image2Path,
VideoName,VideoPath,JCDWRZH,JCRYXM,FilePath,ImportDatetime,SyncError,SyncErrorType,SyncFlag,Extent1,Extent2,RSType) VALUES(
i,
0,
‘‘,
‘A100000002‘,
‘1‘,
1,
1,
‘2020-05-15 19:12:12‘,
‘粤VQ4303‘,
‘01‘,
‘B‘,
‘‘,
‘小货车‘,
‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,‘‘,
1.92,
7.13,
239.00,
13.00,
0,0.00,0.00,
158.00,
0.00,0.00,
30.00,
0.00,0.00,0.00,
1500.00,
0.00,0.00,‘‘,
‘1‘,
‘‘,‘‘,‘‘,
‘1‘,
‘‘,
22.16,
33.52,
0.27,
15.00,
52.00,
0.76,
79.10,
81.00,
1.00,
163.00,
17.50,
0.00,
‘‘,‘‘,‘‘,
‘{"UpperLimit":"85.00","LowLimit":"","JG":"1","remark":null}‘,
‘{"UpperLimit":"101.40","LowLimit":"70.00","JG":"1","remark":null}‘,
‘‘,‘‘,
‘{"UpperLimit":"45.00","LowLimit":"-20.00","JG":"1","remark":null}‘,
‘100000‘,
0,0,
‘200515000174‘,
‘‘,
2,
‘ycdatapic_20200302034851247_蓝粤VQ4303.jpg‘,
‘ycdatapic_20200302034851247_蓝粤VQ4303.jpg‘,
‘ycdatapic_20200302034851247_蓝粤VQ4303_vlpn.jpg‘,
‘ycdatapic_20200302034851247_蓝粤VQ4303_vlpn.jpg‘,
‘ycdata20200302034851248_粤VQ4303_2.mp4‘,
‘ycdata20200302034851248_粤VQ4303_2.mp4‘,
0,‘‘,‘‘,
‘2020-05-15 19:15:43‘,
‘‘,‘‘,1,‘‘,‘‘,1);
SET i=i+1;
END WHILE;
end
$$
set @id=0;
call data(@id);

mysql造模拟数据

标签:win   moni   exists   mis   begin   lag   HERE   creat   monitor   

原文地址:https://www.cnblogs.com/luoguixin/p/13031772.html

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