-- 2023-11-10 新增索引 create index pump_set_pump_id_building_id on pump_set(pump_id, building_id); create index now_data_building_id on pump_set(building_id); create index now_data_pump_id on pump_set(pump_id); -- 2024-01-08 新增字段,waterLevel表 alter table waterLevel add device_addr varchar(32) not null default ''; exec sp_addextendedproperty N'MS_Description', N'设备地址', N'schema', N'dbo',N'table', N'waterLevel', N'column', N'device_addr'; alter table waterLevel add device_name varchar(50) not null default ''; exec sp_addextendedproperty N'MS_Description', N'设备名称', N'schema', N'dbo',N'table', N'waterLevel', N'column', N'device_name';