Update from Sync Service

This commit is contained in:
FNS Service
2026-04-21 17:41:25 +08:00
parent f282f6363f
commit 65f16fe48c
245 changed files with 5459 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
```sql
declare @x numeric(18,2) --X
declare @dt datetime --时间
declare @gpsindex numeric(18,2) --GPSIndex
declare @rand float --随机数
declare @count int --计数
set @x = 0
set @count = 1
set @dt = '2018-07-02 12:00:00'
```
while(@dt < getdate()) begin
```sql
set @gpsindex = convert(bigint, datediff(ss, '1970-01-01 00:00:00', @dt))*1000 + datepart(ms,@dt)
insert into [ZHDMTProj].[dbo].[Flowmeter01]([GPSIndex],[aDatetime],[X]) values(@gpsindex, @dt, @x) --目标表
```
--****************
```sql
set @count = @count + 1
set @dt = DATEADD(ss,15,@dt) --每次递增30秒
```
end