mysql造模拟数据

Posted luoguixin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql造模拟数据相关的知识,希望对你有一定的参考价值。

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造模拟数据的主要内容,如果未能解决你的问题,请参考以下文章

第27篇 重复造轮子---模拟IIS服务器

vue中用mock制造模拟接口(本文主要解决坑),一定要看完哦

MySQL实验准备--Python模拟数据(MySQL数据库)

模拟/模拟MySql数据库进行单元测试

Django模拟从数据库取用户信息跳转到首页

Mysql 结合大量数据分享一些查询优化点