鼎鼎知识库
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.


select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532ac04'

update KaiGuan Set Name='', Code='1' where Mac='187ed5329254' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5329254' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5329254' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5329254' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed5329254' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed5329254' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5329254' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5329254' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5329254' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5329254' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5329254' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed5329254' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5329254' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5329254' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5329254' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5329254' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5329254' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5329254' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed5329254' and LineAddress='19';

--1层A区
第 1 排 (mac: 187ed532ac04)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532ac04'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532ac04' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532ac04' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed532ac04' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532ac04' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532ac04' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532ac04' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532ac04' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532ac04' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532ac04' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532ac04' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532ac04' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532ac04' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532ac04' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532ac04' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532ac04' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532ac04' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532ac04' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532ac04' and LineAddress='18';


第 2 排 (mac: 187ed532a894)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532a894'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532a894' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532a894' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed532a894' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532a894' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532a894' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532a894' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532a894' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532a894' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532a894' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532a894' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532a894' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532a894' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532a894' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532a894' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532a894' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532a894' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532a894' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532a894' and LineAddress='18';


第 3 排 (mac: 187ed532a830)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532a830'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532a830' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532a830' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed532a830' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532a830' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532a830' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532a830' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532a830' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532a830' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532a830' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532a830' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532a830' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532a830' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532a830' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532a830' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532a830' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532a830' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532a830' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532a830' and LineAddress='18';


第 4 排 (mac: 187ed532bf88)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bf88'
17

update KaiGuan Set Name='', Code='1' where Mac='187ed532bf88' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532bf88' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed532bf88' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532bf88' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532bf88' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532bf88' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532bf88' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532bf88' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532bf88' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532bf88' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532bf88' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532bf88' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532bf88' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532bf88' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532bf88' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532bf88' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532bf88' and LineAddress='17';


第 5 排 (mac: 187ed5328b5c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328b5c'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed5328b5c' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5328b5c' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5328b5c' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5328b5c' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed5328b5c' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed5328b5c' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5328b5c' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5328b5c' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5328b5c' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5328b5c' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5328b5c' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed5328b5c' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5328b5c' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5328b5c' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5328b5c' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5328b5c' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5328b5c' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5328b5c' and LineAddress='18';


第 6 排 (mac: 187ed5328864)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328864'
17

update KaiGuan Set Name='', Code='1' where Mac='187ed5328864' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5328864' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5328864' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5328864' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed5328864' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed5328864' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5328864' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5328864' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5328864' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5328864' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5328864' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed5328864' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5328864' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5328864' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5328864' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5328864' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5328864' and LineAddress='17';


--1层B区
第 1 排 (mac: 187ed532b208)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b208'
19

update KaiGuan Set Name='楼道声控灯', Code='1' where Mac='187ed532b208' and LineAddress='1';
update KaiGuan Set Name='3号天井南过道灯', Code='2' where Mac='187ed532b208' and LineAddress='2';
update KaiGuan Set Name='3号天井三角灯', Code='3' where Mac='187ed532b208' and LineAddress='3';
update KaiGuan Set Name='3号天井西过道灯', Code='4' where Mac='187ed532b208' and LineAddress='4';
update KaiGuan Set Name='西门双灯', Code='5' where Mac='187ed532b208' and LineAddress='5';
update KaiGuan Set Name='3号天井三角筒灯', Code='6' where Mac='187ed532b208' and LineAddress='6';
update KaiGuan Set Name='西门内顶灯', Code='7' where Mac='187ed532b208' and LineAddress='7';
update KaiGuan Set Name='西门内筒灯', Code='8' where Mac='187ed532b208' and LineAddress='8';
update KaiGuan Set Name='3号天井三角灯', Code='9' where Mac='187ed532b208' and LineAddress='9';
update KaiGuan Set Name='3号天井三角灯', Code='10' where Mac='187ed532b208' and LineAddress='10';
update KaiGuan Set Name='3号天井三筒灯', Code='11' where Mac='187ed532b208' and LineAddress='11';
update KaiGuan Set Name='3号天井东过道灯', Code='12' where Mac='187ed532b208' and LineAddress='12';
update KaiGuan Set Name='3号天井小过道灯', Code='13' where Mac='187ed532b208' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532b208' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532b208' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532b208' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532b208' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532b208' and LineAddress='18';
update KaiGuan Set Name='服务台插座', Code='19' where Mac='187ed532b208' and LineAddress='19';

第 2 排 (mac: 187ed5329128)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329128'
19

update KaiGuan Set Name='夜间照明', Code='1' where Mac='187ed5329128' and LineAddress='1';
update KaiGuan Set Name='3号天井西过道反光', Code='2' where Mac='187ed5329128' and LineAddress='2';
update KaiGuan Set Name='3号天井西过道反光', Code='3' where Mac='187ed5329128' and LineAddress='3';
update KaiGuan Set Name='3号天井上反光', Code='4' where Mac='187ed5329128' and LineAddress='4';
update KaiGuan Set Name='3号天井下反光', Code='5' where Mac='187ed5329128' and LineAddress='5';
update KaiGuan Set Name='3号天井西过道反光', Code='6' where Mac='187ed5329128' and LineAddress='6';
update KaiGuan Set Name='3号天井西过道反光', Code='7' where Mac='187ed5329128' and LineAddress='7';
update KaiGuan Set Name='3号天井西过道反光', Code='8' where Mac='187ed5329128' and LineAddress='8';
update KaiGuan Set Name='3号天井上白光', Code='9' where Mac='187ed5329128' and LineAddress='9';
update KaiGuan Set Name='3号天井下白光', Code='10' where Mac='187ed5329128' and LineAddress='10';
update KaiGuan Set Name='西门外条灯', Code='11' where Mac='187ed5329128' and LineAddress='11';
update KaiGuan Set Name='空', Code='12' where Mac='187ed5329128' and LineAddress='12';
update KaiGuan Set Name='空', Code='13' where Mac='187ed5329128' and LineAddress='13';
update KaiGuan Set Name='西门外方灯', Code='14' where Mac='187ed5329128' and LineAddress='14';
update KaiGuan Set Name='3号天井东过道反光', Code='15' where Mac='187ed5329128' and LineAddress='15';
update KaiGuan Set Name='3号天井小过道反光', Code='16' where Mac='187ed5329128' and LineAddress='16';
update KaiGuan Set Name='3号天井上反光', Code='17' where Mac='187ed5329128' and LineAddress='17';
update KaiGuan Set Name='3号天井下反光', Code='18' where Mac='187ed5329128' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed5329128' and LineAddress='19';

第 3 排 (mac: 187ed532bb20)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bb20'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532bb20' and LineAddress='1';
update KaiGuan Set Name='3号天井下反光', Code='2' where Mac='187ed532bb20' and LineAddress='2';
update KaiGuan Set Name='西门灯箱', Code='3' where Mac='187ed532bb20' and LineAddress='3';
update KaiGuan Set Name='西门内反光', Code='4' where Mac='187ed532bb20' and LineAddress='4';
update KaiGuan Set Name='西门过道灯', Code='5' where Mac='187ed532bb20' and LineAddress='5';
update KaiGuan Set Name='3号天井东过道反光', Code='6' where Mac='187ed532bb20' and LineAddress='6';
update KaiGuan Set Name='3号天井东过道反光', Code='7' where Mac='187ed532bb20' and LineAddress='7';
update KaiGuan Set Name='3号天井上反光', Code='8' where Mac='187ed532bb20' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532bb20' and LineAddress='9';
update KaiGuan Set Name='3号天井小过道反光', Code='10' where Mac='187ed532bb20' and LineAddress='10';
update KaiGuan Set Name='3号天井东过道反光', Code='11' where Mac='187ed532bb20' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532bb20' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532bb20' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532bb20' and LineAddress='14';
update KaiGuan Set Name='西门外方灯', Code='15' where Mac='187ed532bb20' and LineAddress='15';
update KaiGuan Set Name='西门外方灯', Code='16' where Mac='187ed532bb20' and LineAddress='16';
update KaiGuan Set Name='楼道声控灯', Code='17' where Mac='187ed532bb20' and LineAddress='17';
update KaiGuan Set Name='配电室灯', Code='18' where Mac='187ed532bb20' and LineAddress='18';


--1层C区
第 1 排 (mac: 187ed5328e04)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328e04'
19

update KaiGuan Set Name='夜间照明', Code='1' where Mac='187ed5328e04' and LineAddress='1';
update KaiGuan Set Name='东门过道灯', Code='2' where Mac='187ed5328e04' and LineAddress='2';
update KaiGuan Set Name='4号天井西过道灯', Code='3' where Mac='187ed5328e04' and LineAddress='3';
update KaiGuan Set Name='4号天井小过道灯', Code='4' where Mac='187ed5328e04' and LineAddress='4';
update KaiGuan Set Name='4号天井南过道灯', Code='5' where Mac='187ed5328e04' and LineAddress='5';
update KaiGuan Set Name='4号天井三角筒灯', Code='6' where Mac='187ed5328e04' and LineAddress='6';
update KaiGuan Set Name='4号天井三角灯', Code='7' where Mac='187ed5328e04' and LineAddress='7';
update KaiGuan Set Name='4号天井三角灯', Code='8' where Mac='187ed5328e04' and LineAddress='8';
update KaiGuan Set Name='4号天井三角灯', Code='9' where Mac='187ed5328e04' and LineAddress='9';
update KaiGuan Set Name='4号天井三角灯', Code='10' where Mac='187ed5328e04' and LineAddress='10';
update KaiGuan Set Name='4号天井三角筒灯', Code='11' where Mac='187ed5328e04' and LineAddress='11';
update KaiGuan Set Name='4号天井下反光', Code='12' where Mac='187ed5328e04' and LineAddress='12';
update KaiGuan Set Name='4号天井上反光', Code='13' where Mac='187ed5328e04' and LineAddress='13';
update KaiGuan Set Name='4号天井东道反光', Code='14' where Mac='187ed5328e04' and LineAddress='14';
update KaiGuan Set Name='4号天井东过道反光', Code='15' where Mac='187ed5328e04' and LineAddress='15';
update KaiGuan Set Name='4号天井东过道反光', Code='16' where Mac='187ed5328e04' and LineAddress='16';
update KaiGuan Set Name='4号天井上反光', Code='17' where Mac='187ed5328e04' and LineAddress='17';
update KaiGuan Set Name='4号天井下反光', Code='18' where Mac='187ed5328e04' and LineAddress='18';
update KaiGuan Set Name='男卫插座', Code='19' where Mac='187ed5328e04' and LineAddress='19';

第 2 排 (mac: 187ed53283f0)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed53283f0'
19

update KaiGuan Set Name='走廊插座', Code='1' where Mac='187ed53283f0' and LineAddress='1';
update KaiGuan Set Name='4号天井东过道反光', Code='2' where Mac='187ed53283f0' and LineAddress='2';
update KaiGuan Set Name='4号天井西过道反光', Code='3' where Mac='187ed53283f0' and LineAddress='3';
update KaiGuan Set Name='4号天井小过道反光', Code='4' where Mac='187ed53283f0' and LineAddress='4';
update KaiGuan Set Name='4号天井下反光', Code='5' where Mac='187ed53283f0' and LineAddress='5';
update KaiGuan Set Name='4号天井西过道反光', Code='6' where Mac='187ed53283f0' and LineAddress='6';
update KaiGuan Set Name='4号天井小过道反光', Code='7' where Mac='187ed53283f0' and LineAddress='7';
update KaiGuan Set Name='4号天井上反光', Code='8' where Mac='187ed53283f0' and LineAddress='8';
update KaiGuan Set Name='4号天井西过道反光', Code='9' where Mac='187ed53283f0' and LineAddress='9';
update KaiGuan Set Name='4号天井西过道反光', Code='10' where Mac='187ed53283f0' and LineAddress='10';
update KaiGuan Set Name='备用', Code='11' where Mac='187ed53283f0' and LineAddress='11';
update KaiGuan Set Name='4号天井上反光', Code='12' where Mac='187ed53283f0' and LineAddress='12';
update KaiGuan Set Name='4号天井下反光', Code='13' where Mac='187ed53283f0' and LineAddress='13';
update KaiGuan Set Name='东门过道反光', Code='14' where Mac='187ed53283f0' and LineAddress='14';
update KaiGuan Set Name='4号天井东过道灯', Code='15' where Mac='187ed53283f0' and LineAddress='15';
update KaiGuan Set Name='女卫反光', Code='16' where Mac='187ed53283f0' and LineAddress='16';
update KaiGuan Set Name='女卫照明灯', Code='17' where Mac='187ed53283f0' and LineAddress='17';
update KaiGuan Set Name='男卫照明灯', Code='18' where Mac='187ed53283f0' and LineAddress='18';
update KaiGuan Set Name='女卫插座', Code='19' where Mac='187ed53283f0' and LineAddress='19';

第 3 排 (mac: 187ed532ba70)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532ba70'
18

update KaiGuan Set Name='楼道声控灯', Code='1' where Mac='187ed532ba70' and LineAddress='1';
update KaiGuan Set Name='卫生间感应', Code='2' where Mac='187ed532ba70' and LineAddress='2';
update KaiGuan Set Name='男卫反光', Code='3' where Mac='187ed532ba70' and LineAddress='3';
update KaiGuan Set Name='配电室照明', Code='4' where Mac='187ed532ba70' and LineAddress='4';
update KaiGuan Set Name='东门室外雨棚', Code='5' where Mac='187ed532ba70' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532ba70' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532ba70' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532ba70' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532ba70' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532ba70' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532ba70' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532ba70' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532ba70' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532ba70' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532ba70' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532ba70' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532ba70' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532ba70' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532ba70' and LineAddress='19';

--1层D区
第 1 排 (mac: 187ed532ad60)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532ad60'
18

update KaiGuan Set Name='中央大厅地插', Code='1' where Mac='187ed532ad60' and LineAddress='1';
update KaiGuan Set Name='6号天井上反光', Code='2' where Mac='187ed532ad60' and LineAddress='2';
update KaiGuan Set Name='6号天井东过道反光', Code='3' where Mac='187ed532ad60' and LineAddress='3';
update KaiGuan Set Name='6号天井东过道反光', Code='4' where Mac='187ed532ad60' and LineAddress='4';
update KaiGuan Set Name='6号天井下反光', Code='5' where Mac='187ed532ad60' and LineAddress='5';
update KaiGuan Set Name='6号天井下反光', Code='6' where Mac='187ed532ad60' and LineAddress='6';
update KaiGuan Set Name='6号天井东过道反光', Code='7' where Mac='187ed532ad60' and LineAddress='7';
update KaiGuan Set Name='6号天井下反光上反光', Code='8' where Mac='187ed532ad60' and LineAddress='8';
update KaiGuan Set Name='6号天井东过道反光', Code='9' where Mac='187ed532ad60' and LineAddress='9';
update KaiGuan Set Name='6号天井下反光', Code='10' where Mac='187ed532ad60' and LineAddress='10';
update KaiGuan Set Name='6号天井南过道反光', Code='11' where Mac='187ed532ad60' and LineAddress='11';
update KaiGuan Set Name='6号天井南过道反光', Code='12' where Mac='187ed532ad60' and LineAddress='12';
update KaiGuan Set Name='6号天井上反光', Code='13' where Mac='187ed532ad60' and LineAddress='13';
update KaiGuan Set Name='6号天井西过道反光', Code='14' where Mac='187ed532ad60' and LineAddress='14';
update KaiGuan Set Name='6号天井上反光', Code='15' where Mac='187ed532ad60' and LineAddress='15';
update KaiGuan Set Name='6号天井下反光', Code='16' where Mac='187ed532ad60' and LineAddress='16';
update KaiGuan Set Name='7号天井外反光', Code='17' where Mac='187ed532ad60' and LineAddress='17';
update KaiGuan Set Name='7号天井下反光', Code='18' where Mac='187ed532ad60' and LineAddress='18';


第 2 排 (mac: 187ed53299f8)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed53299f8'
18

update KaiGuan Set Name='收货部照明灯夜间灯', Code='1' where Mac='187ed53299f8' and LineAddress='1';
update KaiGuan Set Name='7号天井上反光', Code='2' where Mac='187ed53299f8' and LineAddress='2';
update KaiGuan Set Name='客梯口反光', Code='3' where Mac='187ed53299f8' and LineAddress='3';
update KaiGuan Set Name='6号天井上反光', Code='4' where Mac='187ed53299f8' and LineAddress='4';
update KaiGuan Set Name='空', Code='5' where Mac='187ed53299f8' and LineAddress='5';
update KaiGuan Set Name='6号天井扶梯条形灯', Code='6' where Mac='187ed53299f8' and LineAddress='6';
update KaiGuan Set Name='客梯两侧灯', Code='7' where Mac='187ed53299f8' and LineAddress='7';
update KaiGuan Set Name='6号天井北过道反光', Code='8' where Mac='187ed53299f8' and LineAddress='8';
update KaiGuan Set Name='6号天井下反光', Code='9' where Mac='187ed53299f8' and LineAddress='9';
update KaiGuan Set Name='7号天井上反光', Code='10' where Mac='187ed53299f8' and LineAddress='10';
update KaiGuan Set Name='7号天井下反光', Code='11' where Mac='187ed53299f8' and LineAddress='11';
update KaiGuan Set Name='7号天井外反光', Code='12' where Mac='187ed53299f8' and LineAddress='12';
update KaiGuan Set Name='7号天井下反光', Code='13' where Mac='187ed53299f8' and LineAddress='13';
update KaiGuan Set Name='7号天井上反光', Code='14' where Mac='187ed53299f8' and LineAddress='14';
update KaiGuan Set Name='南门过道反光', Code='15' where Mac='187ed53299f8' and LineAddress='15';
update KaiGuan Set Name='南门过道反光', Code='16' where Mac='187ed53299f8' and LineAddress='16';
update KaiGuan Set Name='7号天井外反光', Code='17' where Mac='187ed53299f8' and LineAddress='17';
update KaiGuan Set Name='南门外方灯', Code='18' where Mac='187ed53299f8' and LineAddress='18';


第 3 排 (mac: 187ed53294f0)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed53294f0'
18

update KaiGuan Set Name='中央大厅地插', Code='1' where Mac='187ed53294f0' and LineAddress='1';
update KaiGuan Set Name='7号天井上反光', Code='2' where Mac='187ed53294f0' and LineAddress='2';
update KaiGuan Set Name='7号天井下反光', Code='3' where Mac='187ed53294f0' and LineAddress='3';
update KaiGuan Set Name='空', Code='4' where Mac='187ed53294f0' and LineAddress='4';
update KaiGuan Set Name='7号天井上反光', Code='5' where Mac='187ed53294f0' and LineAddress='5';
update KaiGuan Set Name='7号天井下反光', Code='6' where Mac='187ed53294f0' and LineAddress='6';
update KaiGuan Set Name='5号天井扶梯侧灯', Code='7' where Mac='187ed53294f0' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed53294f0' and LineAddress='8';
update KaiGuan Set Name='5号天井扶梯条形灯', Code='9' where Mac='187ed53294f0' and LineAddress='9';
update KaiGuan Set Name='5号天井下反光', Code='10' where Mac='187ed53294f0' and LineAddress='10';
update KaiGuan Set Name='5号天井上反光', Code='11' where Mac='187ed53294f0' and LineAddress='11';
update KaiGuan Set Name='5号天井下反光', Code='12' where Mac='187ed53294f0' and LineAddress='12';
update KaiGuan Set Name='5号天井东过道反光', Code='13' where Mac='187ed53294f0' and LineAddress='13';
update KaiGuan Set Name='客梯口反光', Code='14' where Mac='187ed53294f0' and LineAddress='14';
update KaiGuan Set Name='7号天井外反光', Code='15' where Mac='187ed53294f0' and LineAddress='15';
update KaiGuan Set Name='5号天井北过道反光', Code='16' where Mac='187ed53294f0' and LineAddress='16';
update KaiGuan Set Name='5号天井上反光', Code='17' where Mac='187ed53294f0' and LineAddress='17';
update KaiGuan Set Name='南门外方灯', Code='18' where Mac='187ed53294f0' and LineAddress='18';


第 4 排 (mac: 187ed532bef8)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bef8'
17

update KaiGuan Set Name='中央大厅地插', Code='1' where Mac='187ed532bef8' and LineAddress='1';
update KaiGuan Set Name='5号天井南过道反光', Code='2' where Mac='187ed532bef8' and LineAddress='2';
update KaiGuan Set Name='5号天井南过道反光', Code='3' where Mac='187ed532bef8' and LineAddress='3';
update KaiGuan Set Name='5号天井下反光', Code='4' where Mac='187ed532bef8' and LineAddress='4';
update KaiGuan Set Name='5号天井下反光', Code='5' where Mac='187ed532bef8' and LineAddress='5';
update KaiGuan Set Name='5号天井西过道反光', Code='6' where Mac='187ed532bef8' and LineAddress='6';
update KaiGuan Set Name='5号天井西过道反光', Code='7' where Mac='187ed532bef8' and LineAddress='7';
update KaiGuan Set Name='5号天井上反光', Code='8' where Mac='187ed532bef8' and LineAddress='8';
update KaiGuan Set Name='南门内反光', Code='9' where Mac='187ed532bef8' and LineAddress='9';
update KaiGuan Set Name='南过道反光', Code='10' where Mac='187ed532bef8' and LineAddress='10';
update KaiGuan Set Name='南门灯箱', Code='11' where Mac='187ed532bef8' and LineAddress='11';
update KaiGuan Set Name='南门外条灯', Code='12' where Mac='187ed532bef8' and LineAddress='12';
update KaiGuan Set Name='空', Code='13' where Mac='187ed532bef8' and LineAddress='13';
update KaiGuan Set Name='南门上窗反光', Code='14' where Mac='187ed532bef8' and LineAddress='14';
update KaiGuan Set Name='中央大厅柱灯', Code='15' where Mac='187ed532bef8' and LineAddress='15';
update KaiGuan Set Name='中央大厅柱灯', Code='16' where Mac='187ed532bef8' and LineAddress='16';
update KaiGuan Set Name='中央大厅柱灯', Code='17' where Mac='187ed532bef8' and LineAddress='17';


第 5 排 (mac: 187ed532558c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532558c'
18

update KaiGuan Set Name='收货部插座', Code='1' where Mac='187ed532558c' and LineAddress='1';
update KaiGuan Set Name='客梯口灯箱', Code='2' where Mac='187ed532558c' and LineAddress='2';
update KaiGuan Set Name='6号天井扶梯下灯', Code='3' where Mac='187ed532558c' and LineAddress='3';
update KaiGuan Set Name='客梯口反光', Code='4' where Mac='187ed532558c' and LineAddress='4';
update KaiGuan Set Name='6号天井北过道灯', Code='5' where Mac='187ed532558c' and LineAddress='5';
update KaiGuan Set Name='客梯两侧灯', Code='6' where Mac='187ed532558c' and LineAddress='6';
update KaiGuan Set Name='客梯口灯', Code='7' where Mac='187ed532558c' and LineAddress='7';
update KaiGuan Set Name='6号天井北过道灯', Code='8' where Mac='187ed532558c' and LineAddress='8';
update KaiGuan Set Name='6号天井扶梯侧灯', Code='9' where Mac='187ed532558c' and LineAddress='9';
update KaiGuan Set Name='6号天井南过道灯', Code='10' where Mac='187ed532558c' and LineAddress='10';
update KaiGuan Set Name='7号天井南过道灯', Code='11' where Mac='187ed532558c' and LineAddress='11';
update KaiGuan Set Name='南门过道灯', Code='12' where Mac='187ed532558c' and LineAddress='12';
update KaiGuan Set Name='南门内灯', Code='13' where Mac='187ed532558c' and LineAddress='13';
update KaiGuan Set Name='5号天井南过道灯', Code='14' where Mac='187ed532558c' and LineAddress='14';
update KaiGuan Set Name='南门过道灯', Code='15' where Mac='187ed532558c' and LineAddress='15';
update KaiGuan Set Name='5号天井扶梯下灯', Code='16' where Mac='187ed532558c' and LineAddress='16';
update KaiGuan Set Name='客梯两侧灯', Code='17' where Mac='187ed532558c' and LineAddress='17';
update KaiGuan Set Name='南门过道灯', Code='18' where Mac='187ed532558c' and LineAddress='18';


第 6 排 (mac: 187ed532c264)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532c264'
17

update KaiGuan Set Name='配电室楼道照明', Code='1' where Mac='187ed532c264' and LineAddress='1';
update KaiGuan Set Name='6号天井扶梯口灯', Code='2' where Mac='187ed532c264' and LineAddress='2';
update KaiGuan Set Name='5号天井扶梯口灯', Code='3' where Mac='187ed532c264' and LineAddress='3';
update KaiGuan Set Name='5号天井北过道灯', Code='4' where Mac='187ed532c264' and LineAddress='4';
update KaiGuan Set Name='5号天井西过道灯', Code='5' where Mac='187ed532c264' and LineAddress='5';
update KaiGuan Set Name='东南坡道灯', Code='6' where Mac='187ed532c264' and LineAddress='6';
update KaiGuan Set Name='6号天井东过道灯', Code='7' where Mac='187ed532c264' and LineAddress='7';
update KaiGuan Set Name='东南门雨棚灯', Code='8' where Mac='187ed532c264' and LineAddress='8';
update KaiGuan Set Name='南门200灯', Code='9' where Mac='187ed532c264' and LineAddress='9';
update KaiGuan Set Name='南门外方灯', Code='10' where Mac='187ed532c264' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532c264' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532c264' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532c264' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532c264' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532c264' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532c264' and LineAddress='16';


--2层A区
第 1 排 (mac: 187ed532865c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532865c'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed532865c' and LineAddress='1';
update KaiGuan Set Name='扶梯筒灯', Code='2' where Mac='187ed532865c' and LineAddress='2';
update KaiGuan Set Name='筒灯', Code='3' where Mac='187ed532865c' and LineAddress='3';
update KaiGuan Set Name='扶梯反光', Code='4' where Mac='187ed532865c' and LineAddress='4';
update KaiGuan Set Name='扶梯反光', Code='5' where Mac='187ed532865c' and LineAddress='5';
update KaiGuan Set Name='扶梯反光', Code='6' where Mac='187ed532865c' and LineAddress='6';
update KaiGuan Set Name='小圆灯', Code='7' where Mac='187ed532865c' and LineAddress='7';
update KaiGuan Set Name='反光', Code='8' where Mac='187ed532865c' and LineAddress='8';
update KaiGuan Set Name='天井反光', Code='9' where Mac='187ed532865c' and LineAddress='9';
update KaiGuan Set Name='天井反光', Code='10' where Mac='187ed532865c' and LineAddress='10';
update KaiGuan Set Name='天井反光', Code='11' where Mac='187ed532865c' and LineAddress='11';
update KaiGuan Set Name='天井反光', Code='12' where Mac='187ed532865c' and LineAddress='12';
update KaiGuan Set Name='天井反光', Code='13' where Mac='187ed532865c' and LineAddress='13';
update KaiGuan Set Name='天井反光', Code='14' where Mac='187ed532865c' and LineAddress='14';
update KaiGuan Set Name='天井反光', Code='15' where Mac='187ed532865c' and LineAddress='15';
update KaiGuan Set Name='天井反光', Code='16' where Mac='187ed532865c' and LineAddress='16';
update KaiGuan Set Name='天井反光', Code='17' where Mac='187ed532865c' and LineAddress='17';
update KaiGuan Set Name='天井反光', Code='18' where Mac='187ed532865c' and LineAddress='18';


第 2 排 (mac: 187ed532bae8)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bae8'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed532bae8' and LineAddress='1';
update KaiGuan Set Name='连廊方灯', Code='2' where Mac='187ed532bae8' and LineAddress='2';
update KaiGuan Set Name='走廊反光', Code='3' where Mac='187ed532bae8' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed532bae8' and LineAddress='4';
update KaiGuan Set Name='走廊反光', Code='5' where Mac='187ed532bae8' and LineAddress='5';
update KaiGuan Set Name='小圆灯', Code='6' where Mac='187ed532bae8' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532bae8' and LineAddress='7';
update KaiGuan Set Name='连廊反光', Code='8' where Mac='187ed532bae8' and LineAddress='8';
update KaiGuan Set Name='走廊反光', Code='9' where Mac='187ed532bae8' and LineAddress='9';
update KaiGuan Set Name='走廊反光', Code='10' where Mac='187ed532bae8' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed532bae8' and LineAddress='11';
update KaiGuan Set Name='连廊筒灯', Code='12' where Mac='187ed532bae8' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed532bae8' and LineAddress='13';
update KaiGuan Set Name='连廊反光', Code='14' where Mac='187ed532bae8' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed532bae8' and LineAddress='15';
update KaiGuan Set Name='走廊反光连廊方灯', Code='16' where Mac='187ed532bae8' and LineAddress='16';
update KaiGuan Set Name='走廊反光', Code='17' where Mac='187ed532bae8' and LineAddress='17';
update KaiGuan Set Name='走廊反光', Code='18' where Mac='187ed532bae8' and LineAddress='18';


第 3 排 (mac: 187ed532bf80)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bf80'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed532bf80' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532bf80' and LineAddress='2';
update KaiGuan Set Name='走廊反光', Code='3' where Mac='187ed532bf80' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed532bf80' and LineAddress='4';
update KaiGuan Set Name='走廊反光', Code='5' where Mac='187ed532bf80' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed532bf80' and LineAddress='6';
update KaiGuan Set Name='走廊反光', Code='7' where Mac='187ed532bf80' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532bf80' and LineAddress='8';
update KaiGuan Set Name='连廊反光', Code='9' where Mac='187ed532bf80' and LineAddress='9';
update KaiGuan Set Name='连廊反光', Code='10' where Mac='187ed532bf80' and LineAddress='10';
update KaiGuan Set Name='连廊反光', Code='11' where Mac='187ed532bf80' and LineAddress='11';
update KaiGuan Set Name='连廊筒灯', Code='12' where Mac='187ed532bf80' and LineAddress='12';
update KaiGuan Set Name='连廊反光', Code='13' where Mac='187ed532bf80' and LineAddress='13';
update KaiGuan Set Name='客梯筒灯', Code='14' where Mac='187ed532bf80' and LineAddress='14';
update KaiGuan Set Name='客梯显示牌', Code='15' where Mac='187ed532bf80' and LineAddress='15';
update KaiGuan Set Name='客梯反光', Code='16' where Mac='187ed532bf80' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532bf80' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532bf80' and LineAddress='18';


第 4 排 (mac: 187ed53288dc)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed53288dc'
17

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed53288dc' and LineAddress='1';
update KaiGuan Set Name='走廊反光', Code='2' where Mac='187ed53288dc' and LineAddress='2';
update KaiGuan Set Name='走廊反光', Code='3' where Mac='187ed53288dc' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed53288dc' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed53288dc' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed53288dc' and LineAddress='6';
update KaiGuan Set Name='走廊反光', Code='7' where Mac='187ed53288dc' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed53288dc' and LineAddress='8';
update KaiGuan Set Name='筒灯', Code='9' where Mac='187ed53288dc' and LineAddress='9';
update KaiGuan Set Name='走廊反光', Code='10' where Mac='187ed53288dc' and LineAddress='10';
update KaiGuan Set Name='客梯墙面反光', Code='11' where Mac='187ed53288dc' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed53288dc' and LineAddress='12';
update KaiGuan Set Name='客梯反光', Code='13' where Mac='187ed53288dc' and LineAddress='13';
update KaiGuan Set Name='筒灯', Code='14' where Mac='187ed53288dc' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed53288dc' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed53288dc' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed53288dc' and LineAddress='17';


第 5 排 (mac: 187ed532c36c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532c36c'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532c36c' and LineAddress='1';
update KaiGuan Set Name='天井反光', Code='2' where Mac='187ed532c36c' and LineAddress='2';
update KaiGuan Set Name='天井反光', Code='3' where Mac='187ed532c36c' and LineAddress='3';
update KaiGuan Set Name='天井反光', Code='4' where Mac='187ed532c36c' and LineAddress='4';
update KaiGuan Set Name='天井反光', Code='5' where Mac='187ed532c36c' and LineAddress='5';
update KaiGuan Set Name='天井反光', Code='6' where Mac='187ed532c36c' and LineAddress='6';
update KaiGuan Set Name='天井反光', Code='7' where Mac='187ed532c36c' and LineAddress='7';
update KaiGuan Set Name='天井反光', Code='8' where Mac='187ed532c36c' and LineAddress='8';
update KaiGuan Set Name='天井反光', Code='9' where Mac='187ed532c36c' and LineAddress='9';
update KaiGuan Set Name='天井反光', Code='10' where Mac='187ed532c36c' and LineAddress='10';
update KaiGuan Set Name='天井反光', Code='11' where Mac='187ed532c36c' and LineAddress='11';
update KaiGuan Set Name='天井反光', Code='12' where Mac='187ed532c36c' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532c36c' and LineAddress='13';
update KaiGuan Set Name='天井反光', Code='14' where Mac='187ed532c36c' and LineAddress='14';
update KaiGuan Set Name='天井反光', Code='15' where Mac='187ed532c36c' and LineAddress='15';
update KaiGuan Set Name='天井反光', Code='16' where Mac='187ed532c36c' and LineAddress='16';
update KaiGuan Set Name='天井反光', Code='17' where Mac='187ed532c36c' and LineAddress='17';
update KaiGuan Set Name='夜间照明', Code='18' where Mac='187ed532c36c' and LineAddress='18';


第 6 排 (mac: 187ed532b978)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b978'
17

update KaiGuan Set Name='', Code='1' where Mac='187ed532b978' and LineAddress='1';
update KaiGuan Set Name='反光', Code='2' where Mac='187ed532b978' and LineAddress='2';
update KaiGuan Set Name='反光', Code='3' where Mac='187ed532b978' and LineAddress='3';
update KaiGuan Set Name='反光', Code='4' where Mac='187ed532b978' and LineAddress='4';
update KaiGuan Set Name='扶梯反光', Code='5' where Mac='187ed532b978' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed532b978' and LineAddress='6';
update KaiGuan Set Name='扶梯反光', Code='7' where Mac='187ed532b978' and LineAddress='7';
update KaiGuan Set Name='筒灯', Code='8' where Mac='187ed532b978' and LineAddress='8';
update KaiGuan Set Name='卫生间灯', Code='9' where Mac='187ed532b978' and LineAddress='9';
update KaiGuan Set Name='卫生间灯', Code='10' where Mac='187ed532b978' and LineAddress='10';
update KaiGuan Set Name='筒灯', Code='11' where Mac='187ed532b978' and LineAddress='11';
update KaiGuan Set Name='反光', Code='12' where Mac='187ed532b978' and LineAddress='12';
update KaiGuan Set Name='反光', Code='13' where Mac='187ed532b978' and LineAddress='13';
update KaiGuan Set Name='反光', Code='14' where Mac='187ed532b978' and LineAddress='14';
update KaiGuan Set Name='卫生间灯', Code='15' where Mac='187ed532b978' and LineAddress='15';
update KaiGuan Set Name='筒灯', Code='16' where Mac='187ed532b978' and LineAddress='16';
update KaiGuan Set Name='扶梯反光', Code='17' where Mac='187ed532b978' and LineAddress='17';


--2层B区
第 1 排 (mac: 187ed532b324)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b324'
19

update KaiGuan Set Name='', Code='1' where Mac='187ed532b324' and LineAddress='1';
update KaiGuan Set Name='走廊反光', Code='2' where Mac='187ed532b324' and LineAddress='2';
update KaiGuan Set Name='走廊反光', Code='3' where Mac='187ed532b324' and LineAddress='3';
update KaiGuan Set Name='筒灯', Code='4' where Mac='187ed532b324' and LineAddress='4';
update KaiGuan Set Name='筒灯', Code='5' where Mac='187ed532b324' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed532b324' and LineAddress='6';
update KaiGuan Set Name='走廊反光', Code='7' where Mac='187ed532b324' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532b324' and LineAddress='8';
update KaiGuan Set Name='走廊反光', Code='9' where Mac='187ed532b324' and LineAddress='9';
update KaiGuan Set Name='走廊反光', Code='10' where Mac='187ed532b324' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed532b324' and LineAddress='11';
update KaiGuan Set Name='走廊反光', Code='12' where Mac='187ed532b324' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed532b324' and LineAddress='13';
update KaiGuan Set Name='走廊反光', Code='14' where Mac='187ed532b324' and LineAddress='14';
update KaiGuan Set Name='筒灯', Code='15' where Mac='187ed532b324' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed532b324' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532b324' and LineAddress='17';
update KaiGuan Set Name='走廊反光', Code='18' where Mac='187ed532b324' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532b324' and LineAddress='19';

第 2 排 (mac: 187ed532b24c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b24c'
19

update KaiGuan Set Name='', Code='1' where Mac='187ed532b24c' and LineAddress='1';
update KaiGuan Set Name='天井反光', Code='2' where Mac='187ed532b24c' and LineAddress='2';
update KaiGuan Set Name='天井反光', Code='3' where Mac='187ed532b24c' and LineAddress='3';
update KaiGuan Set Name='天井反光', Code='4' where Mac='187ed532b24c' and LineAddress='4';
update KaiGuan Set Name='天井反光', Code='5' where Mac='187ed532b24c' and LineAddress='5';
update KaiGuan Set Name='天井反光', Code='6' where Mac='187ed532b24c' and LineAddress='6';
update KaiGuan Set Name='天井反光', Code='7' where Mac='187ed532b24c' and LineAddress='7';
update KaiGuan Set Name='天井反光', Code='8' where Mac='187ed532b24c' and LineAddress='8';
update KaiGuan Set Name='天井反光', Code='9' where Mac='187ed532b24c' and LineAddress='9';
update KaiGuan Set Name='天井反光', Code='10' where Mac='187ed532b24c' and LineAddress='10';
update KaiGuan Set Name='天井反光', Code='11' where Mac='187ed532b24c' and LineAddress='11';
update KaiGuan Set Name='天井反光', Code='12' where Mac='187ed532b24c' and LineAddress='12';
update KaiGuan Set Name='天井反光', Code='13' where Mac='187ed532b24c' and LineAddress='13';
update KaiGuan Set Name='天井反光', Code='14' where Mac='187ed532b24c' and LineAddress='14';
update KaiGuan Set Name='天井反光', Code='15' where Mac='187ed532b24c' and LineAddress='15';
update KaiGuan Set Name='天井反光', Code='16' where Mac='187ed532b24c' and LineAddress='16';
update KaiGuan Set Name='天井反光', Code='17' where Mac='187ed532b24c' and LineAddress='17';
update KaiGuan Set Name='夜间照明', Code='18' where Mac='187ed532b24c' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532b24c' and LineAddress='19';

第 3 排 (mac: 187ed5329674)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329674'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed5329674' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5329674' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5329674' and LineAddress='3';
update KaiGuan Set Name='小圆灯', Code='4' where Mac='187ed5329674' and LineAddress='4';
update KaiGuan Set Name='小圆灯', Code='5' where Mac='187ed5329674' and LineAddress='5';
update KaiGuan Set Name='筒灯', Code='6' where Mac='187ed5329674' and LineAddress='6';
update KaiGuan Set Name='小圆灯', Code='7' where Mac='187ed5329674' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed5329674' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5329674' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5329674' and LineAddress='10';
update KaiGuan Set Name='小圆灯', Code='11' where Mac='187ed5329674' and LineAddress='11';
update KaiGuan Set Name='筒灯', Code='12' where Mac='187ed5329674' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5329674' and LineAddress='13';
update KaiGuan Set Name='小圆灯', Code='14' where Mac='187ed5329674' and LineAddress='14';
update KaiGuan Set Name='小圆灯', Code='15' where Mac='187ed5329674' and LineAddress='15';
update KaiGuan Set Name='小圆灯', Code='16' where Mac='187ed5329674' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5329674' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5329674' and LineAddress='18';


--2层C区
第 1 排 (mac: 187ed532c0c0)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532c0c0'
19

update KaiGuan Set Name='', Code='1' where Mac='187ed532c0c0' and LineAddress='1';
update KaiGuan Set Name='夜间照明', Code='2' where Mac='187ed532c0c0' and LineAddress='2';
update KaiGuan Set Name='天井反光', Code='3' where Mac='187ed532c0c0' and LineAddress='3';
update KaiGuan Set Name='天井反光', Code='4' where Mac='187ed532c0c0' and LineAddress='4';
update KaiGuan Set Name='天井反光', Code='5' where Mac='187ed532c0c0' and LineAddress='5';
update KaiGuan Set Name='天井反光', Code='6' where Mac='187ed532c0c0' and LineAddress='6';
update KaiGuan Set Name='天井反光', Code='7' where Mac='187ed532c0c0' and LineAddress='7';
update KaiGuan Set Name='天井反光', Code='8' where Mac='187ed532c0c0' and LineAddress='8';
update KaiGuan Set Name='天井反光', Code='9' where Mac='187ed532c0c0' and LineAddress='9';
update KaiGuan Set Name='天井反光', Code='10' where Mac='187ed532c0c0' and LineAddress='10';
update KaiGuan Set Name='天井反光', Code='11' where Mac='187ed532c0c0' and LineAddress='11';
update KaiGuan Set Name='天井反光', Code='12' where Mac='187ed532c0c0' and LineAddress='12';
update KaiGuan Set Name='天井反光', Code='13' where Mac='187ed532c0c0' and LineAddress='13';
update KaiGuan Set Name='筒灯', Code='14' where Mac='187ed532c0c0' and LineAddress='14';
update KaiGuan Set Name='天井反光', Code='15' where Mac='187ed532c0c0' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed532c0c0' and LineAddress='16';
update KaiGuan Set Name='天井反光', Code='17' where Mac='187ed532c0c0' and LineAddress='17';
update KaiGuan Set Name='天井反光', Code='18' where Mac='187ed532c0c0' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532c0c0' and LineAddress='19';

第 2 排 (mac: 187ed5328488)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328488'
19

update KaiGuan Set Name='', Code='1' where Mac='187ed5328488' and LineAddress='1';
update KaiGuan Set Name='走廊反光', Code='2' where Mac='187ed5328488' and LineAddress='2';
update KaiGuan Set Name='走廊反光筒灯', Code='3' where Mac='187ed5328488' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5328488' and LineAddress='4';
update KaiGuan Set Name='走廊反光', Code='5' where Mac='187ed5328488' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed5328488' and LineAddress='6';
update KaiGuan Set Name='走廊反光', Code='7' where Mac='187ed5328488' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed5328488' and LineAddress='8';
update KaiGuan Set Name='走廊反光', Code='9' where Mac='187ed5328488' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5328488' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed5328488' and LineAddress='11';
update KaiGuan Set Name='走廊反光', Code='12' where Mac='187ed5328488' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed5328488' and LineAddress='13';
update KaiGuan Set Name='走廊反光', Code='14' where Mac='187ed5328488' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed5328488' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed5328488' and LineAddress='16';
update KaiGuan Set Name='走廊反光', Code='17' where Mac='187ed5328488' and LineAddress='17';
update KaiGuan Set Name='走廊反光', Code='18' where Mac='187ed5328488' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed5328488' and LineAddress='19';

第 3 排 (mac: 187ed532bc70)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bc70'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532bc70' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532bc70' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed532bc70' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532bc70' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532bc70' and LineAddress='5';
update KaiGuan Set Name='小圆灯', Code='6' where Mac='187ed532bc70' and LineAddress='6';
update KaiGuan Set Name='小圆灯', Code='7' where Mac='187ed532bc70' and LineAddress='7';
update KaiGuan Set Name='小圆灯', Code='8' where Mac='187ed532bc70' and LineAddress='8';
update KaiGuan Set Name='小圆灯', Code='9' where Mac='187ed532bc70' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532bc70' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed532bc70' and LineAddress='11';
update KaiGuan Set Name='走廊反光', Code='12' where Mac='187ed532bc70' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed532bc70' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532bc70' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed532bc70' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532bc70' and LineAddress='16';
update KaiGuan Set Name='走廊反光', Code='17' where Mac='187ed532bc70' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532bc70' and LineAddress='18';


--2层D区
第 1 排 (mac: 187ed5329430)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329430'
18



update KaiGuan Set Name='', Code='1' where Mac='187ed5329430' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5329430' and LineAddress='2';
update KaiGuan Set Name='扶梯反光', Code='3' where Mac='187ed5329430' and LineAddress='3';
update KaiGuan Set Name='扶梯反光', Code='4' where Mac='187ed5329430' and LineAddress='4';
update KaiGuan Set Name='扶梯筒灯', Code='5' where Mac='187ed5329430' and LineAddress='5';
update KaiGuan Set Name='大圆北筒灯', Code='6' where Mac='187ed5329430' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5329430' and LineAddress='7';
update KaiGuan Set Name='圆柱反光', Code='8' where Mac='187ed5329430' and LineAddress='8';
update KaiGuan Set Name='筒灯', Code='9' where Mac='187ed5329430' and LineAddress='9';
update KaiGuan Set Name='大圆内反光', Code='10' where Mac='187ed5329430' and LineAddress='10';
update KaiGuan Set Name='大圆内反光', Code='11' where Mac='187ed5329430' and LineAddress='11';
update KaiGuan Set Name='天井反光', Code='12' where Mac='187ed5329430' and LineAddress='12';
update KaiGuan Set Name='天井反光', Code='13' where Mac='187ed5329430' and LineAddress='13';
update KaiGuan Set Name='大圆内反光', Code='14' where Mac='187ed5329430' and LineAddress='14';
update KaiGuan Set Name='大圆内反光', Code='15' where Mac='187ed5329430' and LineAddress='15';
update KaiGuan Set Name='天井反光', Code='16' where Mac='187ed5329430' and LineAddress='16';
update KaiGuan Set Name='天井反光', Code='17' where Mac='187ed5329430' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5329430' and LineAddress='18';


第 2 排 (mac: 187ed53288d4)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed53288d4'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed53288d4' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed53288d4' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed53288d4' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed53288d4' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed53288d4' and LineAddress='5';
update KaiGuan Set Name='筒灯', Code='6' where Mac='187ed53288d4' and LineAddress='6';
update KaiGuan Set Name='走廊反光', Code='7' where Mac='187ed53288d4' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed53288d4' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed53288d4' and LineAddress='9';
update KaiGuan Set Name='走廊筒灯', Code='10' where Mac='187ed53288d4' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed53288d4' and LineAddress='11';
update KaiGuan Set Name='走廊反光', Code='12' where Mac='187ed53288d4' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed53288d4' and LineAddress='13';
update KaiGuan Set Name='走廊反光', Code='14' where Mac='187ed53288d4' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed53288d4' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed53288d4' and LineAddress='16';
update KaiGuan Set Name='走廊反光', Code='17' where Mac='187ed53288d4' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed53288d4' and LineAddress='18';


第 3 排 (mac: 187ed532b95c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b95c'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532b95c' and LineAddress='1';
update KaiGuan Set Name='大圆内反光', Code='2' where Mac='187ed532b95c' and LineAddress='2';
update KaiGuan Set Name='大圆内反光', Code='3' where Mac='187ed532b95c' and LineAddress='3';
update KaiGuan Set Name='天井反光', Code='4' where Mac='187ed532b95c' and LineAddress='4';
update KaiGuan Set Name='大圆内反光', Code='5' where Mac='187ed532b95c' and LineAddress='5';
update KaiGuan Set Name='天井反光', Code='6' where Mac='187ed532b95c' and LineAddress='6';
update KaiGuan Set Name='天井反光', Code='7' where Mac='187ed532b95c' and LineAddress='7';
update KaiGuan Set Name='天井反光', Code='8' where Mac='187ed532b95c' and LineAddress='8';
update KaiGuan Set Name='走廊反光', Code='9' where Mac='187ed532b95c' and LineAddress='9';
update KaiGuan Set Name='天井反光', Code='10' where Mac='187ed532b95c' and LineAddress='10';
update KaiGuan Set Name='天井反光', Code='11' where Mac='187ed532b95c' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532b95c' and LineAddress='12';
update KaiGuan Set Name='天井反光', Code='13' where Mac='187ed532b95c' and LineAddress='13';
update KaiGuan Set Name='观光梯反光', Code='14' where Mac='187ed532b95c' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532b95c' and LineAddress='15';
update KaiGuan Set Name='天井反光', Code='16' where Mac='187ed532b95c' and LineAddress='16';
update KaiGuan Set Name='天井反光', Code='17' where Mac='187ed532b95c' and LineAddress='17';
update KaiGuan Set Name='天井反光', Code='18' where Mac='187ed532b95c' and LineAddress='18';


第 4 排 (mac: 187ed532be90)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532be90'
17
update KaiGuan Set Name='', Code='1' where Mac='187ed532be90' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532be90' and LineAddress='2';
update KaiGuan Set Name='走廊反光', Code='3' where Mac='187ed532be90' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed532be90' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532be90' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed532be90' and LineAddress='6';
update KaiGuan Set Name='走廊反光', Code='7' where Mac='187ed532be90' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed532be90' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532be90' and LineAddress='9';
update KaiGuan Set Name='筒灯', Code='10' where Mac='187ed532be90' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed532be90' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532be90' and LineAddress='12';
update KaiGuan Set Name='货梯厅仓库', Code='13' where Mac='187ed532be90' and LineAddress='13';
update KaiGuan Set Name='走廊天井反光', Code='14' where Mac='187ed532be90' and LineAddress='14';
update KaiGuan Set Name='大圆内反光', Code='15' where Mac='187ed532be90' and LineAddress='15';
update KaiGuan Set Name='大圆内反光', Code='16' where Mac='187ed532be90' and LineAddress='16';
update KaiGuan Set Name='天井反光', Code='17' where Mac='187ed532be90' and LineAddress='17';


第 5 排 (mac: 187ed5328474)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328474'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed5328474' and LineAddress='1';
update KaiGuan Set Name='走廊反光', Code='2' where Mac='187ed5328474' and LineAddress='2';
update KaiGuan Set Name='走廊反光', Code='3' where Mac='187ed5328474' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed5328474' and LineAddress='4';
update KaiGuan Set Name='筒灯', Code='5' where Mac='187ed5328474' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed5328474' and LineAddress='6';
update KaiGuan Set Name='筒灯', Code='7' where Mac='187ed5328474' and LineAddress='7';
update KaiGuan Set Name='筒灯', Code='8' where Mac='187ed5328474' and LineAddress='8';
update KaiGuan Set Name='走廊反光', Code='9' where Mac='187ed5328474' and LineAddress='9';
update KaiGuan Set Name='走廊反光', Code='10' where Mac='187ed5328474' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5328474' and LineAddress='11';
update KaiGuan Set Name='走廊反光', Code='12' where Mac='187ed5328474' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed5328474' and LineAddress='13';
update KaiGuan Set Name='筒灯', Code='14' where Mac='187ed5328474' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed5328474' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed5328474' and LineAddress='16';
update KaiGuan Set Name='走廊反光', Code='17' where Mac='187ed5328474' and LineAddress='17';


第 6 排 (mac: 187ed532a59c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532a59c'
17

update KaiGuan Set Name='', Code='1' where Mac='187ed532a59c' and LineAddress='1';
update KaiGuan Set Name='大圆内反光', Code='2' where Mac='187ed532a59c' and LineAddress='2';
update KaiGuan Set Name='大圆内反光', Code='3' where Mac='187ed532a59c' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532a59c' and LineAddress='4';
update KaiGuan Set Name='筒灯', Code='5' where Mac='187ed532a59c' and LineAddress='5';
update KaiGuan Set Name='扶梯反光', Code='6' where Mac='187ed532a59c' and LineAddress='6';
update KaiGuan Set Name='圆柱反光', Code='7' where Mac='187ed532a59c' and LineAddress='7';
update KaiGuan Set Name='卫生间灯', Code='8' where Mac='187ed532a59c' and LineAddress='8';
update KaiGuan Set Name='卫生间炒作', Code='9' where Mac='187ed532a59c' and LineAddress='9';
update KaiGuan Set Name='走廊反光筒灯', Code='10' where Mac='187ed532a59c' and LineAddress='10';
update KaiGuan Set Name='天井反光', Code='11' where Mac='187ed532a59c' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532a59c' and LineAddress='12';
update KaiGuan Set Name='天井反光', Code='13' where Mac='187ed532a59c' and LineAddress='13';
update KaiGuan Set Name='卫生间走廊灯', Code='14' where Mac='187ed532a59c' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed532a59c' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed532a59c' and LineAddress='16';
update KaiGuan Set Name='夜间照明', Code='17' where Mac='187ed532a59c' and LineAddress='17';


--3层A区
第 1 排 (mac: 187ed53104cc)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed53104cc'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed53104cc' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed53104cc' and LineAddress='2';
update KaiGuan Set Name='中庭南走廊筒灯', Code='3' where Mac='187ed53104cc' and LineAddress='3';
update KaiGuan Set Name='中庭东南筒灯', Code='4' where Mac='187ed53104cc' and LineAddress='4';
update KaiGuan Set Name='西庭南筒灯', Code='5' where Mac='187ed53104cc' and LineAddress='5';
update KaiGuan Set Name='西扶梯西24伏', Code='6' where Mac='187ed53104cc' and LineAddress='6';
update KaiGuan Set Name='西扶梯西24伏备', Code='7' where Mac='187ed53104cc' and LineAddress='7';
update KaiGuan Set Name='中庭西走廊反光', Code='8' where Mac='187ed53104cc' and LineAddress='8';
update KaiGuan Set Name='西扶梯北筒灯', Code='9' where Mac='187ed53104cc' and LineAddress='9';
update KaiGuan Set Name='西北筒灯', Code='10' where Mac='187ed53104cc' and LineAddress='10';
update KaiGuan Set Name='配电间前T5', Code='11' where Mac='187ed53104cc' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed53104cc' and LineAddress='12';
update KaiGuan Set Name='西庭南D1', Code='13' where Mac='187ed53104cc' and LineAddress='13';
update KaiGuan Set Name='西庭北D1', Code='14' where Mac='187ed53104cc' and LineAddress='14';
update KaiGuan Set Name='西庭东D1', Code='15' where Mac='187ed53104cc' and LineAddress='15';
update KaiGuan Set Name='西庭西D1', Code='16' where Mac='187ed53104cc' and LineAddress='16';
update KaiGuan Set Name='西厅东D1', Code='17' where Mac='187ed53104cc' and LineAddress='17';
update KaiGuan Set Name='东扶梯南D1', Code='18' where Mac='187ed53104cc' and LineAddress='18';


第 2 排 (mac: 187ed532becc)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532becc'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed532becc' and LineAddress='1';
update KaiGuan Set Name='中庭东南上T5', Code='2' where Mac='187ed532becc' and LineAddress='2';
update KaiGuan Set Name='中庭西南下T5', Code='3' where Mac='187ed532becc' and LineAddress='3';
update KaiGuan Set Name='西走廊T5', Code='4' where Mac='187ed532becc' and LineAddress='4';
update KaiGuan Set Name='中庭西北走廊D1', Code='5' where Mac='187ed532becc' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532becc' and LineAddress='6';
update KaiGuan Set Name='东扶梯D1', Code='7' where Mac='187ed532becc' and LineAddress='7';
update KaiGuan Set Name='西扶梯东24伏', Code='8' where Mac='187ed532becc' and LineAddress='8';
update KaiGuan Set Name='东扶梯北D1', Code='9' where Mac='187ed532becc' and LineAddress='9';
update KaiGuan Set Name='东庭南T5', Code='10' where Mac='187ed532becc' and LineAddress='10';
update KaiGuan Set Name='东南门口T5', Code='11' where Mac='187ed532becc' and LineAddress='11';
update KaiGuan Set Name='东厅北柱子T5', Code='12' where Mac='187ed532becc' and LineAddress='12';
update KaiGuan Set Name='西庭南柱子T5', Code='13' where Mac='187ed532becc' and LineAddress='13';
update KaiGuan Set Name='配电间前D1', Code='14' where Mac='187ed532becc' and LineAddress='14';
update KaiGuan Set Name='中庭南廊T5', Code='15' where Mac='187ed532becc' and LineAddress='15';
update KaiGuan Set Name='中庭东南下T5', Code='16' where Mac='187ed532becc' and LineAddress='16';
update KaiGuan Set Name='中庭西南下T5', Code='17' where Mac='187ed532becc' and LineAddress='17';
update KaiGuan Set Name='中庭廊T5', Code='18' where Mac='187ed532becc' and LineAddress='18';


第 3 排 (mac: 187ed532a9b0)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532a9b0'
18

update KaiGuan Set Name='卫生间T5', Code='1' where Mac='187ed532a9b0' and LineAddress='1';
update KaiGuan Set Name='中庭南廊T5', Code='2' where Mac='187ed532a9b0' and LineAddress='2';
update KaiGuan Set Name='西庭南廊D1', Code='3' where Mac='187ed532a9b0' and LineAddress='3';
update KaiGuan Set Name='西扶梯东24伏', Code='4' where Mac='187ed532a9b0' and LineAddress='4';
update KaiGuan Set Name='中庭西南上T5', Code='5' where Mac='187ed532a9b0' and LineAddress='5';
update KaiGuan Set Name='中庭南廊D1', Code='6' where Mac='187ed532a9b0' and LineAddress='6';
update KaiGuan Set Name='中庭西南上T5备用', Code='7' where Mac='187ed532a9b0' and LineAddress='7';
update KaiGuan Set Name='中庭东廊T5', Code='8' where Mac='187ed532a9b0' and LineAddress='8';
update KaiGuan Set Name='货梯D1', Code='9' where Mac='187ed532a9b0' and LineAddress='9';
update KaiGuan Set Name='中庭北D1', Code='10' where Mac='187ed532a9b0' and LineAddress='10';
update KaiGuan Set Name='货梯前室D1', Code='11' where Mac='187ed532a9b0' and LineAddress='11';
update KaiGuan Set Name='中庭北廊D1', Code='12' where Mac='187ed532a9b0' and LineAddress='12';
update KaiGuan Set Name='东廊D1', Code='13' where Mac='187ed532a9b0' and LineAddress='13';
update KaiGuan Set Name='东南门D1', Code='14' where Mac='187ed532a9b0' and LineAddress='14';
update KaiGuan Set Name='东庭南柱子', Code='15' where Mac='187ed532a9b0' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532a9b0' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532a9b0' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532a9b0' and LineAddress='18';


第 4 排 (mac: 187ed532bbf0)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bbf0'
17

update KaiGuan Set Name='卫生间感应', Code='1' where Mac='187ed532bbf0' and LineAddress='1';
update KaiGuan Set Name='中庭西北上T5', Code='2' where Mac='187ed532bbf0' and LineAddress='2';
update KaiGuan Set Name='中庭西南上T5', Code='3' where Mac='187ed532bbf0' and LineAddress='3';
update KaiGuan Set Name='中庭东北上T5', Code='4' where Mac='187ed532bbf0' and LineAddress='4';
update KaiGuan Set Name='中庭东南上T5', Code='5' where Mac='187ed532bbf0' and LineAddress='5';
update KaiGuan Set Name='中庭西北下T5', Code='6' where Mac='187ed532bbf0' and LineAddress='6';
update KaiGuan Set Name='中庭东北下T5', Code='7' where Mac='187ed532bbf0' and LineAddress='7';
update KaiGuan Set Name='中庭西南下T5', Code='8' where Mac='187ed532bbf0' and LineAddress='8';
update KaiGuan Set Name='中庭东南下T5', Code='9' where Mac='187ed532bbf0' and LineAddress='9';
update KaiGuan Set Name='西扶梯东边T5', Code='10' where Mac='187ed532bbf0' and LineAddress='10';
update KaiGuan Set Name='西走廊T5', Code='11' where Mac='187ed532bbf0' and LineAddress='11';
update KaiGuan Set Name='西庭中T5', Code='12' where Mac='187ed532bbf0' and LineAddress='12';
update KaiGuan Set Name='南走廊T5', Code='13' where Mac='187ed532bbf0' and LineAddress='13';
update KaiGuan Set Name='西庭南廊T5', Code='14' where Mac='187ed532bbf0' and LineAddress='14';
update KaiGuan Set Name='西扶梯西边灯', Code='15' where Mac='187ed532bbf0' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532bbf0' and LineAddress='16';
update KaiGuan Set Name='西庭西廊T5', Code='17' where Mac='187ed532bbf0' and LineAddress='17';


第 5 排 (mac: 187ed5329ec0)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329ec0'
18

update KaiGuan Set Name='卫生间u5', Code='1' where Mac='187ed5329ec0' and LineAddress='1';
update KaiGuan Set Name='东庭东上T5', Code='2' where Mac='187ed5329ec0' and LineAddress='2';
update KaiGuan Set Name='东庭东北下T5', Code='3' where Mac='187ed5329ec0' and LineAddress='3';
update KaiGuan Set Name='东庭东北上T5', Code='4' where Mac='187ed5329ec0' and LineAddress='4';
update KaiGuan Set Name='东庭西北上T5', Code='5' where Mac='187ed5329ec0' and LineAddress='5';
update KaiGuan Set Name='东庭东上T5', Code='6' where Mac='187ed5329ec0' and LineAddress='6';
update KaiGuan Set Name='东庭东南下T5', Code='7' where Mac='187ed5329ec0' and LineAddress='7';
update KaiGuan Set Name='东庭西南下T5', Code='8' where Mac='187ed5329ec0' and LineAddress='8';
update KaiGuan Set Name='东庭西北下T5', Code='9' where Mac='187ed5329ec0' and LineAddress='9';
update KaiGuan Set Name='西庭北廊T5', Code='10' where Mac='187ed5329ec0' and LineAddress='10';
update KaiGuan Set Name='东中廊T5', Code='11' where Mac='187ed5329ec0' and LineAddress='11';
update KaiGuan Set Name='东庭南廊D1', Code='12' where Mac='187ed5329ec0' and LineAddress='12';
update KaiGuan Set Name='东廊T5', Code='13' where Mac='187ed5329ec0' and LineAddress='13';
update KaiGuan Set Name='南廊T5', Code='14' where Mac='187ed5329ec0' and LineAddress='14';
update KaiGuan Set Name='东廊T5', Code='15' where Mac='187ed5329ec0' and LineAddress='15';
update KaiGuan Set Name='东中廊T5', Code='16' where Mac='187ed5329ec0' and LineAddress='16';
update KaiGuan Set Name='中庭北廊T5', Code='17' where Mac='187ed5329ec0' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5329ec0' and LineAddress='18';


第 6 排 (mac: 187ed532ae0c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532ae0c'
17

update KaiGuan Set Name='夜间照明', Code='1' where Mac='187ed532ae0c' and LineAddress='1';
update KaiGuan Set Name='中庭西北上T5', Code='2' where Mac='187ed532ae0c' and LineAddress='2';
update KaiGuan Set Name='中庭东北上T5', Code='3' where Mac='187ed532ae0c' and LineAddress='3';
update KaiGuan Set Name='中庭西北下T5', Code='4' where Mac='187ed532ae0c' and LineAddress='4';
update KaiGuan Set Name='中庭东北下T5', Code='5' where Mac='187ed532ae0c' and LineAddress='5';
update KaiGuan Set Name='中庭北廊T5', Code='6' where Mac='187ed532ae0c' and LineAddress='6';
update KaiGuan Set Name='东扶梯西边灯', Code='7' where Mac='187ed532ae0c' and LineAddress='7';
update KaiGuan Set Name='中庭西廊T5', Code='8' where Mac='187ed532ae0c' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532ae0c' and LineAddress='9';
update KaiGuan Set Name='西庭北柱子灯', Code='10' where Mac='187ed532ae0c' and LineAddress='10';
update KaiGuan Set Name='东庭走廊T5', Code='11' where Mac='187ed532ae0c' and LineAddress='11';
update KaiGuan Set Name='北廊T5', Code='12' where Mac='187ed532ae0c' and LineAddress='12';
update KaiGuan Set Name='中庭北廊T5', Code='13' where Mac='187ed532ae0c' and LineAddress='13';
update KaiGuan Set Name='中庭东廊T5', Code='14' where Mac='187ed532ae0c' and LineAddress='14';
update KaiGuan Set Name='东扶梯东24伏', Code='15' where Mac='187ed532ae0c' and LineAddress='15';
update KaiGuan Set Name='中庭北廊T5', Code='16' where Mac='187ed532ae0c' and LineAddress='16';
update KaiGuan Set Name='东扶梯西24伏', Code='17' where Mac='187ed532ae0c' and LineAddress='17';


--3层B区
第 1 排 (mac: 187ed532bd4c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bd4c'
19

update KaiGuan Set Name='北造型筒灯', Code='1' where Mac='187ed532bd4c' and LineAddress='1';
update KaiGuan Set Name='机房前走廊反光', Code='2' where Mac='187ed532bd4c' and LineAddress='2';
update KaiGuan Set Name='天井西走廊反光', Code='3' where Mac='187ed532bd4c' and LineAddress='3';
update KaiGuan Set Name='机房前走廊反光', Code='4' where Mac='187ed532bd4c' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532bd4c' and LineAddress='5';
update KaiGuan Set Name='天井西走廊反光', Code='6' where Mac='187ed532bd4c' and LineAddress='6';
update KaiGuan Set Name='天井北走廊反光', Code='7' where Mac='187ed532bd4c' and LineAddress='7';
update KaiGuan Set Name='机房前走廊筒灯', Code='8' where Mac='187ed532bd4c' and LineAddress='8';
update KaiGuan Set Name='天井西走廊反光', Code='9' where Mac='187ed532bd4c' and LineAddress='9';
update KaiGuan Set Name='天井西走廊筒灯', Code='10' where Mac='187ed532bd4c' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532bd4c' and LineAddress='11';
update KaiGuan Set Name='货梯走廊筒灯', Code='12' where Mac='187ed532bd4c' and LineAddress='12';
update KaiGuan Set Name='天井东走廊反光', Code='13' where Mac='187ed532bd4c' and LineAddress='13';
update KaiGuan Set Name='天井北走廊筒灯', Code='14' where Mac='187ed532bd4c' and LineAddress='14';
update KaiGuan Set Name='天井东走廊反光', Code='15' where Mac='187ed532bd4c' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532bd4c' and LineAddress='16';
update KaiGuan Set Name='货梯走廊筒灯', Code='17' where Mac='187ed532bd4c' and LineAddress='17';
update KaiGuan Set Name='天井东走廊筒灯', Code='18' where Mac='187ed532bd4c' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532bd4c' and LineAddress='19';

第 2 排 (mac: 187ed5329fa4)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329fa4'
19

update KaiGuan Set Name='南造型24伏', Code='1' where Mac='187ed5329fa4' and LineAddress='1';
update KaiGuan Set Name='天井东南上反光', Code='2' where Mac='187ed5329fa4' and LineAddress='2';
update KaiGuan Set Name='天井西南上反光', Code='3' where Mac='187ed5329fa4' and LineAddress='3';
update KaiGuan Set Name='天井东北上反光', Code='4' where Mac='187ed5329fa4' and LineAddress='4';
update KaiGuan Set Name='天井西北上反光', Code='5' where Mac='187ed5329fa4' and LineAddress='5';
update KaiGuan Set Name='天井东北上反光', Code='6' where Mac='187ed5329fa4' and LineAddress='6';
update KaiGuan Set Name='天井西南下反光', Code='7' where Mac='187ed5329fa4' and LineAddress='7';
update KaiGuan Set Name='天井东南下反光', Code='8' where Mac='187ed5329fa4' and LineAddress='8';
update KaiGuan Set Name='天井西北下反光', Code='9' where Mac='187ed5329fa4' and LineAddress='9';
update KaiGuan Set Name='天井西走廊反光', Code='10' where Mac='187ed5329fa4' and LineAddress='10';
update KaiGuan Set Name='天井西走廊反光', Code='11' where Mac='187ed5329fa4' and LineAddress='11';
update KaiGuan Set Name='天井东走廊反光', Code='12' where Mac='187ed5329fa4' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5329fa4' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5329fa4' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5329fa4' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5329fa4' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5329fa4' and LineAddress='17';
update KaiGuan Set Name='夜间照明', Code='18' where Mac='187ed5329fa4' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed5329fa4' and LineAddress='19';

第 3 排 (mac: 187ed532c154)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532c154'
18

update KaiGuan Set Name='南总行24伏', Code='1' where Mac='187ed532c154' and LineAddress='1';
update KaiGuan Set Name='天井南走廊反光', Code='2' where Mac='187ed532c154' and LineAddress='2';
update KaiGuan Set Name='天井东走廊反光', Code='3' where Mac='187ed532c154' and LineAddress='3';
update KaiGuan Set Name='中庭北24伏', Code='4' where Mac='187ed532c154' and LineAddress='4';
update KaiGuan Set Name='中庭北24伏', Code='5' where Mac='187ed532c154' and LineAddress='5';
update KaiGuan Set Name='天井南造型筒灯', Code='6' where Mac='187ed532c154' and LineAddress='6';
update KaiGuan Set Name='天井南走廊反光', Code='7' where Mac='187ed532c154' and LineAddress='7';
update KaiGuan Set Name='天井西走廊反光', Code='8' where Mac='187ed532c154' and LineAddress='8';
update KaiGuan Set Name='天井南走廊反光', Code='9' where Mac='187ed532c154' and LineAddress='9';
update KaiGuan Set Name='天井东走廊反光', Code='10' where Mac='187ed532c154' and LineAddress='10';
update KaiGuan Set Name='天井西走廊反光', Code='11' where Mac='187ed532c154' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532c154' and LineAddress='12';
update KaiGuan Set Name='天井东北上反光', Code='13' where Mac='187ed532c154' and LineAddress='13';
update KaiGuan Set Name='天井东北下反光', Code='14' where Mac='187ed532c154' and LineAddress='14';
update KaiGuan Set Name='天井东南下反光', Code='15' where Mac='187ed532c154' and LineAddress='15';
update KaiGuan Set Name='天井西北下反光', Code='16' where Mac='187ed532c154' and LineAddress='16';
update KaiGuan Set Name='天井西南下反光', Code='17' where Mac='187ed532c154' and LineAddress='17';


--3层C区
第 1 排 (mac: 187ed5329828)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329828'
19

update KaiGuan Set Name='中庭南24伏', Code='1' where Mac='187ed5329828' and LineAddress='1';
update KaiGuan Set Name='夜间照明', Code='2' where Mac='187ed5329828' and LineAddress='2';
update KaiGuan Set Name='中庭北廊D1', Code='3' where Mac='187ed5329828' and LineAddress='3';
update KaiGuan Set Name='中庭西廊T5', Code='4' where Mac='187ed5329828' and LineAddress='4';
update KaiGuan Set Name='中庭东廊T5', Code='5' where Mac='187ed5329828' and LineAddress='5';
update KaiGuan Set Name='机房前廊D1', Code='6' where Mac='187ed5329828' and LineAddress='6';
update KaiGuan Set Name='中庭东廊D1', Code='7' where Mac='187ed5329828' and LineAddress='7';
update KaiGuan Set Name='机房前廊T5', Code='8' where Mac='187ed5329828' and LineAddress='8';
update KaiGuan Set Name='中庭东廊T5', Code='9' where Mac='187ed5329828' and LineAddress='9';
update KaiGuan Set Name='中庭西廊D1', Code='10' where Mac='187ed5329828' and LineAddress='10';
update KaiGuan Set Name='中庭西廊T5', Code='11' where Mac='187ed5329828' and LineAddress='11';
update KaiGuan Set Name='中庭东廊T5', Code='12' where Mac='187ed5329828' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5329828' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5329828' and LineAddress='14';
update KaiGuan Set Name='中庭东廊D1', Code='15' where Mac='187ed5329828' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5329828' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5329828' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5329828' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed5329828' and LineAddress='19';

第 2 排 (mac: 187ed532bc04)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bc04'
19

update KaiGuan Set Name='中庭北24伏', Code='1' where Mac='187ed532bc04' and LineAddress='1';
update KaiGuan Set Name='中庭西南上T5', Code='2' where Mac='187ed532bc04' and LineAddress='2';
update KaiGuan Set Name='中庭西北下T5', Code='3' where Mac='187ed532bc04' and LineAddress='3';
update KaiGuan Set Name='中庭北廊T5', Code='4' where Mac='187ed532bc04' and LineAddress='4';
update KaiGuan Set Name='中庭东南上T5', Code='5' where Mac='187ed532bc04' and LineAddress='5';
update KaiGuan Set Name='中庭东北下T5', Code='6' where Mac='187ed532bc04' and LineAddress='6';
update KaiGuan Set Name='中庭西廊T5', Code='7' where Mac='187ed532bc04' and LineAddress='7';
update KaiGuan Set Name='中庭东南下T5', Code='8' where Mac='187ed532bc04' and LineAddress='8';
update KaiGuan Set Name='中庭西南下T5', Code='9' where Mac='187ed532bc04' and LineAddress='9';
update KaiGuan Set Name='中庭东北上T5', Code='10' where Mac='187ed532bc04' and LineAddress='10';
update KaiGuan Set Name='中庭东廊T5', Code='11' where Mac='187ed532bc04' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532bc04' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532bc04' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532bc04' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532bc04' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532bc04' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532bc04' and LineAddress='17';
update KaiGuan Set Name='应急照明', Code='18' where Mac='187ed532bc04' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532bc04' and LineAddress='19';

第 3 排 (mac: 187ed532ba30)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532ba30'
18

update KaiGuan Set Name='中庭北24伏', Code='1' where Mac='187ed532ba30' and LineAddress='1';
update KaiGuan Set Name='中庭南24伏', Code='2' where Mac='187ed532ba30' and LineAddress='2';
update KaiGuan Set Name='中庭南廊D1', Code='3' where Mac='187ed532ba30' and LineAddress='3';
update KaiGuan Set Name='中庭北廊D1', Code='4' where Mac='187ed532ba30' and LineAddress='4';
update KaiGuan Set Name='中庭西北下T5', Code='5' where Mac='187ed532ba30' and LineAddress='5';
update KaiGuan Set Name='中庭西廊T5', Code='6' where Mac='187ed532ba30' and LineAddress='6';
update KaiGuan Set Name='中庭东廊T5', Code='7' where Mac='187ed532ba30' and LineAddress='7';
update KaiGuan Set Name='中庭东廊T5', Code='8' where Mac='187ed532ba30' and LineAddress='8';
update KaiGuan Set Name='配电间照明', Code='9' where Mac='187ed532ba30' and LineAddress='9';
update KaiGuan Set Name='中庭西廊T5', Code='10' where Mac='187ed532ba30' and LineAddress='10';
update KaiGuan Set Name='机房前廊T5', Code='11' where Mac='187ed532ba30' and LineAddress='11';
update KaiGuan Set Name='中庭东北上T5', Code='12' where Mac='187ed532ba30' and LineAddress='12';
update KaiGuan Set Name='中庭西南上T5', Code='13' where Mac='187ed532ba30' and LineAddress='13';
update KaiGuan Set Name='中庭西北下T5', Code='14' where Mac='187ed532ba30' and LineAddress='14';
update KaiGuan Set Name='中庭东南下T5', Code='15' where Mac='187ed532ba30' and LineAddress='15';
update KaiGuan Set Name='中庭西南下T5', Code='16' where Mac='187ed532ba30' and LineAddress='16';
update KaiGuan Set Name='中庭东北下T5', Code='17' where Mac='187ed532ba30' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532ba30' and LineAddress='18';


--3层D区
第 1 排 (mac: 187ed532b2dc)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b2dc'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed532b2dc' and LineAddress='1';
update KaiGuan Set Name='西连廊D3灯', Code='2' where Mac='187ed532b2dc' and LineAddress='2';
update KaiGuan Set Name='西连廊反光灯', Code='3' where Mac='187ed532b2dc' and LineAddress='3';
update KaiGuan Set Name='西扶梯东24伏', Code='4' where Mac='187ed532b2dc' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532b2dc' and LineAddress='5';
update KaiGuan Set Name='东中庭东走廊反光', Code='6' where Mac='187ed532b2dc' and LineAddress='6';
update KaiGuan Set Name='西连廊反光灯', Code='7' where Mac='187ed532b2dc' and LineAddress='7';
update KaiGuan Set Name='扶梯西边灯', Code='8' where Mac='187ed532b2dc' and LineAddress='8';
update KaiGuan Set Name='西扶梯东边灯', Code='9' where Mac='187ed532b2dc' and LineAddress='9';
update KaiGuan Set Name='天井西走廊反光', Code='10' where Mac='187ed532b2dc' and LineAddress='10';
update KaiGuan Set Name='西天井北走廊反光', Code='11' where Mac='187ed532b2dc' and LineAddress='11';
update KaiGuan Set Name='西扶梯北筒灯', Code='12' where Mac='187ed532b2dc' and LineAddress='12';
update KaiGuan Set Name='西连廊筒灯', Code='13' where Mac='187ed532b2dc' and LineAddress='13';
update KaiGuan Set Name='西扶梯西24伏', Code='14' where Mac='187ed532b2dc' and LineAddress='14';
update KaiGuan Set Name='西连廊西D3灯', Code='15' where Mac='187ed532b2dc' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532b2dc' and LineAddress='16';
update KaiGuan Set Name='西连廊筒灯', Code='17' where Mac='187ed532b2dc' and LineAddress='17';
update KaiGuan Set Name='西连廊门口灯', Code='18' where Mac='187ed532b2dc' and LineAddress='18';


第 2 排 (mac: 187ed53273b8)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed53273b8'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed53273b8' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed53273b8' and LineAddress='2';
update KaiGuan Set Name='西中庭北走廊筒灯', Code='3' where Mac='187ed53273b8' and LineAddress='3';
update KaiGuan Set Name='西连廊门口筒灯', Code='4' where Mac='187ed53273b8' and LineAddress='4';
update KaiGuan Set Name='西连廊反光灯', Code='5' where Mac='187ed53273b8' and LineAddress='5';
update KaiGuan Set Name='西天井南走廊反光灯', Code='6' where Mac='187ed53273b8' and LineAddress='6';
update KaiGuan Set Name='西北走廊反光灯', Code='7' where Mac='187ed53273b8' and LineAddress='7';
update KaiGuan Set Name='西走廊反光', Code='8' where Mac='187ed53273b8' and LineAddress='8';
update KaiGuan Set Name='东中庭东筒灯', Code='9' where Mac='187ed53273b8' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed53273b8' and LineAddress='10';
update KaiGuan Set Name='卫生间前走廊筒灯', Code='11' where Mac='187ed53273b8' and LineAddress='11';
update KaiGuan Set Name='东庭南走廊反光灯', Code='12' where Mac='187ed53273b8' and LineAddress='12';
update KaiGuan Set Name='东扶梯西边灯', Code='13' where Mac='187ed53273b8' and LineAddress='13';
update KaiGuan Set Name='东扶梯东边灯', Code='14' where Mac='187ed53273b8' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed53273b8' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed53273b8' and LineAddress='16';
update KaiGuan Set Name='东扶梯西24伏灯', Code='17' where Mac='187ed53273b8' and LineAddress='17';
update KaiGuan Set Name='卫生间走廊反光灯', Code='18' where Mac='187ed53273b8' and LineAddress='18';


第 3 排 (mac: 187ed5329f18)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329f18'
18

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed5329f18' and LineAddress='1';
update KaiGuan Set Name='天井西南上反光灯', Code='2' where Mac='187ed5329f18' and LineAddress='2';
update KaiGuan Set Name='东天井东上反光灯', Code='3' where Mac='187ed5329f18' and LineAddress='3';
update KaiGuan Set Name='东天井东上反光灯', Code='4' where Mac='187ed5329f18' and LineAddress='4';
update KaiGuan Set Name='东天井东下反光灯', Code='5' where Mac='187ed5329f18' and LineAddress='5';
update KaiGuan Set Name='东天井西南下反光灯', Code='6' where Mac='187ed5329f18' and LineAddress='6';
update KaiGuan Set Name='东天井西北下反光灯', Code='7' where Mac='187ed5329f18' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5329f18' and LineAddress='8';
update KaiGuan Set Name='东天井西走廊反光灯', Code='9' where Mac='187ed5329f18' and LineAddress='9';
update KaiGuan Set Name='西天井东走廊反光灯', Code='10' where Mac='187ed5329f18' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5329f18' and LineAddress='11';
update KaiGuan Set Name='西天井东走廊反光灯', Code='12' where Mac='187ed5329f18' and LineAddress='12';
update KaiGuan Set Name='西中庭东走廊筒灯', Code='13' where Mac='187ed5329f18' and LineAddress='13';
update KaiGuan Set Name='西扶梯东24伏灯', Code='14' where Mac='187ed5329f18' and LineAddress='14';
update KaiGuan Set Name='东扶梯东24伏灯', Code='15' where Mac='187ed5329f18' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5329f18' and LineAddress='16';
update KaiGuan Set Name='东扶梯西24伏灯', Code='17' where Mac='187ed5329f18' and LineAddress='17';
update KaiGuan Set Name='东中庭东走廊反光', Code='18' where Mac='187ed5329f18' and LineAddress='18';


第 4 排 (mac: 187ed532a818)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532a818'
17

update KaiGuan Set Name='卫生间插座', Code='1' where Mac='187ed532a818' and LineAddress='1';
update KaiGuan Set Name='东天井东走廊反光灯', Code='2' where Mac='187ed532a818' and LineAddress='2';
update KaiGuan Set Name='客梯前筒灯', Code='3' where Mac='187ed532a818' and LineAddress='3';
update KaiGuan Set Name='东天井西走廊反光灯', Code='4' where Mac='187ed532a818' and LineAddress='4';
update KaiGuan Set Name='东天井东走廊反光灯', Code='5' where Mac='187ed532a818' and LineAddress='5';
update KaiGuan Set Name='东天井东走廊反光灯', Code='6' where Mac='187ed532a818' and LineAddress='6';
update KaiGuan Set Name='东天井东走廊反光灯', Code='7' where Mac='187ed532a818' and LineAddress='7';
update KaiGuan Set Name='夜间照明灯', Code='8' where Mac='187ed532a818' and LineAddress='8';
update KaiGuan Set Name='东天井东东走廊反光灯', Code='9' where Mac='187ed532a818' and LineAddress='9';
update KaiGuan Set Name='西天井东下反光灯', Code='10' where Mac='187ed532a818' and LineAddress='10';
update KaiGuan Set Name='西天井西北下反光灯', Code='11' where Mac='187ed532a818' and LineAddress='11';
update KaiGuan Set Name='西天井西南下反光灯', Code='12' where Mac='187ed532a818' and LineAddress='12';
update KaiGuan Set Name='西天井东上反光灯', Code='13' where Mac='187ed532a818' and LineAddress='13';
update KaiGuan Set Name='西天井西南上反光灯', Code='14' where Mac='187ed532a818' and LineAddress='14';
update KaiGuan Set Name='西天井西北上反光灯', Code='15' where Mac='187ed532a818' and LineAddress='15';
update KaiGuan Set Name='西走廊反光灯', Code='16' where Mac='187ed532a818' and LineAddress='16';
update KaiGuan Set Name='西扶梯前南筒灯', Code='17' where Mac='187ed532a818' and LineAddress='17';


第 5 排 (mac: 187ed532a628)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532a628'
18

update KaiGuan Set Name='东扶梯北筒灯', Code='1' where Mac='187ed532a628' and LineAddress='1';
update KaiGuan Set Name='东连廊反光灯', Code='2' where Mac='187ed532a628' and LineAddress='2';
update KaiGuan Set Name='东连廊D3灯', Code='3' where Mac='187ed532a628' and LineAddress='3';
update KaiGuan Set Name='东连廊门口筒灯', Code='4' where Mac='187ed532a628' and LineAddress='4';
update KaiGuan Set Name='东连廊反光灯', Code='5' where Mac='187ed532a628' and LineAddress='5';
update KaiGuan Set Name='东中庭北走廊筒灯', Code='6' where Mac='187ed532a628' and LineAddress='6';
update KaiGuan Set Name='东连廊南反光灯', Code='7' where Mac='187ed532a628' and LineAddress='7';
update KaiGuan Set Name='东中庭北走廊筒灯', Code='8' where Mac='187ed532a628' and LineAddress='8';
update KaiGuan Set Name='东连廊西D3灯', Code='9' where Mac='187ed532a628' and LineAddress='9';
update KaiGuan Set Name='西天井西走廊反光灯', Code='10' where Mac='187ed532a628' and LineAddress='10';
update KaiGuan Set Name='西天井西走廊反光灯', Code='11' where Mac='187ed532a628' and LineAddress='11';
update KaiGuan Set Name='卫生间女u5', Code='12' where Mac='187ed532a628' and LineAddress='12';
update KaiGuan Set Name='卫生间反光灯', Code='13' where Mac='187ed532a628' and LineAddress='13';
update KaiGuan Set Name='卫生间南卫感应', Code='14' where Mac='187ed532a628' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532a628' and LineAddress='15';
update KaiGuan Set Name='卫生间前走廊灯', Code='16' where Mac='187ed532a628' and LineAddress='16';
update KaiGuan Set Name='卫生间女卫感应', Code='17' where Mac='187ed532a628' and LineAddress='17';
update KaiGuan Set Name='东天井扶梯上筒灯', Code='18' where Mac='187ed532a628' and LineAddress='18';


第 6 排 (mac: 187ed532bd34)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532bd34'
17

update KaiGuan Set Name='东连廊门口灯', Code='1' where Mac='187ed532bd34' and LineAddress='1';
update KaiGuan Set Name='东连廊东D3灯', Code='2' where Mac='187ed532bd34' and LineAddress='2';
update KaiGuan Set Name='东中庭西走廊反光灯', Code='3' where Mac='187ed532bd34' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532bd34' and LineAddress='4';
update KaiGuan Set Name='东连廊反光灯', Code='5' where Mac='187ed532bd34' and LineAddress='5';
update KaiGuan Set Name='东连廊筒灯', Code='6' where Mac='187ed532bd34' and LineAddress='6';
update KaiGuan Set Name='东连廊筒灯', Code='7' where Mac='187ed532bd34' and LineAddress='7';
update KaiGuan Set Name='东连廊西D3灯', Code='8' where Mac='187ed532bd34' and LineAddress='8';
update KaiGuan Set Name='东中庭西走廊筒灯', Code='9' where Mac='187ed532bd34' and LineAddress='9';
update KaiGuan Set Name='客梯灯箱', Code='10' where Mac='187ed532bd34' and LineAddress='10';
update KaiGuan Set Name='东中庭西反光灯', Code='11' where Mac='187ed532bd34' and LineAddress='11';
update KaiGuan Set Name='东中庭西走廊反光灯', Code='12' where Mac='187ed532bd34' and LineAddress='12';
update KaiGuan Set Name='客梯灯箱', Code='13' where Mac='187ed532bd34' and LineAddress='13';
update KaiGuan Set Name='东中庭西走廊反光灯', Code='14' where Mac='187ed532bd34' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532bd34' and LineAddress='15';
update KaiGuan Set Name='西天井南走廊反光', Code='16' where Mac='187ed532bd34' and LineAddress='16';
update KaiGuan Set Name='西中庭南筒灯', Code='17' where Mac='187ed532bd34' and LineAddress='17';


--4层A区
第 1 排 (mac: 187ed5329634)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329634'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed5329634' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5329634' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5329634' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5329634' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed5329634' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed5329634' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5329634' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5329634' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5329634' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5329634' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5329634' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed5329634' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5329634' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5329634' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5329634' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5329634' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5329634' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5329634' and LineAddress='18';


第2 排 (mac: 187ed5329fa8)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329fa8'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed5329fa8' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5329fa8' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5329fa8' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5329fa8' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed5329fa8' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed5329fa8' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5329fa8' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5329fa8' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5329fa8' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5329fa8' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5329fa8' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed5329fa8' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5329fa8' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5329fa8' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5329fa8' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5329fa8' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5329fa8' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5329fa8' and LineAddress='18';


第 3 排 (mac: 187ed532c19c)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532c19c'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532c19c' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532c19c' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed532c19c' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532c19c' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532c19c' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532c19c' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532c19c' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532c19c' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532c19c' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532c19c' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532c19c' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532c19c' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532c19c' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532c19c' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532c19c' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532c19c' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532c19c' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532c19c' and LineAddress='18';


第 4 排 (mac: 187ed5329be4)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5329be4'
17

update KaiGuan Set Name='', Code='1' where Mac='187ed5329be4' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5329be4' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5329be4' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5329be4' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed5329be4' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed5329be4' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5329be4' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5329be4' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5329be4' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5329be4' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5329be4' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed5329be4' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5329be4' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5329be4' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5329be4' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5329be4' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5329be4' and LineAddress='17';


第 5 排 (mac: 187ed5328b04)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328b04'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed5328b04' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed5328b04' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed5328b04' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed5328b04' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed5328b04' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed5328b04' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed5328b04' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed5328b04' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed5328b04' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed5328b04' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed5328b04' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed5328b04' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed5328b04' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed5328b04' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed5328b04' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed5328b04' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed5328b04' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed5328b04' and LineAddress='18';


第 6 排 (mac: 187ed532c2cc)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532c2cc'
17

update KaiGuan Set Name='', Code='1' where Mac='187ed532c2cc' and LineAddress='1';
update KaiGuan Set Name='', Code='2' where Mac='187ed532c2cc' and LineAddress='2';
update KaiGuan Set Name='', Code='3' where Mac='187ed532c2cc' and LineAddress='3';
update KaiGuan Set Name='', Code='4' where Mac='187ed532c2cc' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532c2cc' and LineAddress='5';
update KaiGuan Set Name='', Code='6' where Mac='187ed532c2cc' and LineAddress='6';
update KaiGuan Set Name='', Code='7' where Mac='187ed532c2cc' and LineAddress='7';
update KaiGuan Set Name='', Code='8' where Mac='187ed532c2cc' and LineAddress='8';
update KaiGuan Set Name='', Code='9' where Mac='187ed532c2cc' and LineAddress='9';
update KaiGuan Set Name='', Code='10' where Mac='187ed532c2cc' and LineAddress='10';
update KaiGuan Set Name='', Code='11' where Mac='187ed532c2cc' and LineAddress='11';
update KaiGuan Set Name='', Code='12' where Mac='187ed532c2cc' and LineAddress='12';
update KaiGuan Set Name='', Code='13' where Mac='187ed532c2cc' and LineAddress='13';
update KaiGuan Set Name='', Code='14' where Mac='187ed532c2cc' and LineAddress='14';
update KaiGuan Set Name='', Code='15' where Mac='187ed532c2cc' and LineAddress='15';
update KaiGuan Set Name='', Code='16' where Mac='187ed532c2cc' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532c2cc' and LineAddress='17';


--4层B区
第 1 排 (mac: 187ed532b414)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b414'
19

update KaiGuan Set Name='夜间灯', Code='1' where Mac='187ed532b414' and LineAddress='1';
update KaiGuan Set Name='走廊灯', Code='2' where Mac='187ed532b414' and LineAddress='2';
update KaiGuan Set Name='走廊造型反光', Code='3' where Mac='187ed532b414' and LineAddress='3';
update KaiGuan Set Name='走廊造型', Code='4' where Mac='187ed532b414' and LineAddress='4';
update KaiGuan Set Name='走廊造型灯', Code='5' where Mac='187ed532b414' and LineAddress='5';
update KaiGuan Set Name='走廊造型反光', Code='6' where Mac='187ed532b414' and LineAddress='6';
update KaiGuan Set Name='小圆反光下', Code='7' where Mac='187ed532b414' and LineAddress='7';
update KaiGuan Set Name='小圆反光下', Code='8' where Mac='187ed532b414' and LineAddress='8';
update KaiGuan Set Name='小圆反光下', Code='9' where Mac='187ed532b414' and LineAddress='9';
update KaiGuan Set Name='小圆反光下', Code='10' where Mac='187ed532b414' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed532b414' and LineAddress='11';
update KaiGuan Set Name='吊楣反光', Code='12' where Mac='187ed532b414' and LineAddress='12';
update KaiGuan Set Name='小圆上反光', Code='13' where Mac='187ed532b414' and LineAddress='13';
update KaiGuan Set Name='小圆下反光', Code='14' where Mac='187ed532b414' and LineAddress='14';
update KaiGuan Set Name='小圆上反光', Code='15' where Mac='187ed532b414' and LineAddress='15';
update KaiGuan Set Name='小圆下反光', Code='16' where Mac='187ed532b414' and LineAddress='16';
update KaiGuan Set Name='走廊反光', Code='17' where Mac='187ed532b414' and LineAddress='17';
update KaiGuan Set Name='小圆灯', Code='18' where Mac='187ed532b414' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532b414' and LineAddress='19';

第 2 排 (mac: 187ed532b274)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b274'
19

update KaiGuan Set Name='', Code='1' where Mac='187ed532b274' and LineAddress='1';
update KaiGuan Set Name='小圆灯', Code='2' where Mac='187ed532b274' and LineAddress='2';
update KaiGuan Set Name='小圆上反光', Code='3' where Mac='187ed532b274' and LineAddress='3';
update KaiGuan Set Name='小圆下反光', Code='4' where Mac='187ed532b274' and LineAddress='4';
update KaiGuan Set Name='小圆下反光', Code='5' where Mac='187ed532b274' and LineAddress='5';
update KaiGuan Set Name='小圆下反光', Code='6' where Mac='187ed532b274' and LineAddress='6';
update KaiGuan Set Name='小圆下反光', Code='7' where Mac='187ed532b274' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed532b274' and LineAddress='8';
update KaiGuan Set Name='备用', Code='9' where Mac='187ed532b274' and LineAddress='9';
update KaiGuan Set Name='吊楣反光', Code='10' where Mac='187ed532b274' and LineAddress='10';
update KaiGuan Set Name='走廊反光', Code='11' where Mac='187ed532b274' and LineAddress='11';
update KaiGuan Set Name='小圆反光', Code='12' where Mac='187ed532b274' and LineAddress='12';
update KaiGuan Set Name='小圆灯箱', Code='13' where Mac='187ed532b274' and LineAddress='13';
update KaiGuan Set Name='小圆灯', Code='14' where Mac='187ed532b274' and LineAddress='14';
update KaiGuan Set Name='小圆反光下', Code='15' where Mac='187ed532b274' and LineAddress='15';
update KaiGuan Set Name='小圆反光上', Code='16' where Mac='187ed532b274' and LineAddress='16';
update KaiGuan Set Name='小圆反光上', Code='17' where Mac='187ed532b274' and LineAddress='17';
update KaiGuan Set Name='小圆反光上', Code='18' where Mac='187ed532b274' and LineAddress='18';
update KaiGuan Set Name='', Code='19' where Mac='187ed532b274' and LineAddress='19';

第 3 排 (mac: 187ed532b878)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b878'
18

update KaiGuan Set Name='', Code='1' where Mac='187ed532b878' and LineAddress='1';
update KaiGuan Set Name='走廊造型灯', Code='2' where Mac='187ed532b878' and LineAddress='2';
update KaiGuan Set Name='走廊造型反光', Code='3' where Mac='187ed532b878' and LineAddress='3';
update KaiGuan Set Name='走廊造型反光', Code='4' where Mac='187ed532b878' and LineAddress='4';
update KaiGuan Set Name='', Code='5' where Mac='187ed532b878' and LineAddress='5';
update KaiGuan Set Name='吊楣反光', Code='6' where Mac='187ed532b878' and LineAddress='6';
update KaiGuan Set Name='吊楣反光', Code='7' where Mac='187ed532b878' and LineAddress='7';
update KaiGuan Set Name='东走廊灯', Code='8' where Mac='187ed532b878' and LineAddress='8';
update KaiGuan Set Name='小圆下反光', Code='9' where Mac='187ed532b878' and LineAddress='9';
update KaiGuan Set Name='小圆下反光', Code='10' where Mac='187ed532b878' and LineAddress='10';
update KaiGuan Set Name='小圆下反光', Code='11' where Mac='187ed532b878' and LineAddress='11';
update KaiGuan Set Name='小圆下反光', Code='12' where Mac='187ed532b878' and LineAddress='12';
update KaiGuan Set Name='吊楣反光', Code='13' where Mac='187ed532b878' and LineAddress='13';
update KaiGuan Set Name='走廊反光', Code='14' where Mac='187ed532b878' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed532b878' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed532b878' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532b878' and LineAddress='17';
update KaiGuan Set Name='', Code='18' where Mac='187ed532b878' and LineAddress='18';

--4层C区
第1排 187ed532bd7c

update KaiGuan Set Name='男卫烘手器', Code='1' where Mac='187ed532bd7c' and LineAddress='1';
update KaiGuan Set Name='夜间照明', Code='2' where Mac='187ed532bd7c' and LineAddress='2';
update KaiGuan Set Name='走廊灯', Code='3' where Mac='187ed532bd7c' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed532bd7c' and LineAddress='4';
update KaiGuan Set Name='吊楣反光', Code='5' where Mac='187ed532bd7c' and LineAddress='5';
update KaiGuan Set Name='走廊反光', Code='6' where Mac='187ed532bd7c' and LineAddress='6';
update KaiGuan Set Name='走廊反光', Code='7' where Mac='187ed532bd7c' and LineAddress='7';
update KaiGuan Set Name='小圆上反光', Code='8' where Mac='187ed532bd7c' and LineAddress='8';
update KaiGuan Set Name='小圆上反光', Code='9' where Mac='187ed532bd7c' and LineAddress='9';
update KaiGuan Set Name='小圆灯', Code='10' where Mac='187ed532bd7c' and LineAddress='10';
update KaiGuan Set Name='小圆灯', Code='11' where Mac='187ed532bd7c' and LineAddress='11';
update KaiGuan Set Name='小圆上反光', Code='12' where Mac='187ed532bd7c' and LineAddress='12';
update KaiGuan Set Name='小圆上反光', Code='13' where Mac='187ed532bd7c' and LineAddress='13';
update KaiGuan Set Name='前室灯', Code='14' where Mac='187ed532bd7c' and LineAddress='14';
update KaiGuan Set Name='小圆下反光', Code='15' where Mac='187ed532bd7c' and LineAddress='15';
update KaiGuan Set Name='小圆下反光', Code='16' where Mac='187ed532bd7c' and LineAddress='16';
update KaiGuan Set Name='货梯灯', Code='17' where Mac='187ed532bd7c' and LineAddress='17';
update KaiGuan Set Name='小圆下反光', Code='18' where Mac='187ed532bd7c' and LineAddress='18';


第2排 187ed532bfc4

update KaiGuan Set Name='女卫烘手器', Code='1' where Mac='187ed532bfc4' and LineAddress='1';
update KaiGuan Set Name='小圆下反光', Code='2' where Mac='187ed532bfc4' and LineAddress='2';
update KaiGuan Set Name='走廊灯', Code='3' where Mac='187ed532bfc4' and LineAddress='3';
update KaiGuan Set Name='小圆灯', Code='4' where Mac='187ed532bfc4' and LineAddress='4';
update KaiGuan Set Name='小圆上反光', Code='5' where Mac='187ed532bfc4' and LineAddress='5';
update KaiGuan Set Name='小圆上反光', Code='6' where Mac='187ed532bfc4' and LineAddress='6';
update KaiGuan Set Name='小圆灯箱', Code='7' where Mac='187ed532bfc4' and LineAddress='7';
update KaiGuan Set Name='小圆上反光', Code='8' where Mac='187ed532bfc4' and LineAddress='8';
update KaiGuan Set Name='走廊造型反光', Code='9' where Mac='187ed532bfc4' and LineAddress='9';
update KaiGuan Set Name='走廊造型灯', Code='10' where Mac='187ed532bfc4' and LineAddress='10';
update KaiGuan Set Name='走廊造型反光', Code='11' where Mac='187ed532bfc4' and LineAddress='11';
update KaiGuan Set Name='走廊反光', Code='12' where Mac='187ed532bfc4' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed532bfc4' and LineAddress='13';
update KaiGuan Set Name='走廊造型灯', Code='14' where Mac='187ed532bfc4' and LineAddress='14';
update KaiGuan Set Name='走廊造型反光', Code='15' where Mac='187ed532bfc4' and LineAddress='15';
update KaiGuan Set Name='走廊造型反光', Code='16' where Mac='187ed532bfc4' and LineAddress='16';
update KaiGuan Set Name='走廊灯', Code='17' where Mac='187ed532bfc4' and LineAddress='17';
update KaiGuan Set Name='走廊灯', Code='18' where Mac='187ed532bfc4' and LineAddress='18';
update KaiGuan Set Name='女卫暖手宝', Code='19' where Mac='187ed532bfc4' and LineAddress='19';

第3排 187ed532adec

update KaiGuan Set Name='男卫暖手宝', Code='1' where Mac='187ed532adec' and LineAddress='1';
update KaiGuan Set Name='西吊楣反光', Code='2' where Mac='187ed532adec' and LineAddress='2';
update KaiGuan Set Name='西吊楣反光', Code='3' where Mac='187ed532adec' and LineAddress='3';
update KaiGuan Set Name='走廊反光', Code='4' where Mac='187ed532adec' and LineAddress='4';
update KaiGuan Set Name='小圆下反光', Code='5' where Mac='187ed532adec' and LineAddress='5';
update KaiGuan Set Name='小圆下反光', Code='6' where Mac='187ed532adec' and LineAddress='6';
update KaiGuan Set Name='小圆下反光', Code='7' where Mac='187ed532adec' and LineAddress='7';
update KaiGuan Set Name='小圆下反光', Code='8' where Mac='187ed532adec' and LineAddress='8';
update KaiGuan Set Name='小圆下反光', Code='9' where Mac='187ed532adec' and LineAddress='9';
update KaiGuan Set Name='小圆下反光', Code='10' where Mac='187ed532adec' and LineAddress='10';
update KaiGuan Set Name='小圆下反光', Code='11' where Mac='187ed532adec' and LineAddress='11';
update KaiGuan Set Name='小圆下反光', Code='12' where Mac='187ed532adec' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed532adec' and LineAddress='13';
update KaiGuan Set Name='走廊反光', Code='14' where Mac='187ed532adec' and LineAddress='14';
update KaiGuan Set Name='吊楣反光', Code='15' where Mac='187ed532adec' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed532adec' and LineAddress='16';
update KaiGuan Set Name='', Code='17' where Mac='187ed532adec' and LineAddress='17';
update KaiGuan Set Name='女卫暖手宝', Code='18' where Mac='187ed532adec' and LineAddress='18';

--4层D区
第 1 排 (mac: 187ed532b838)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b838'

update KaiGuan Set Name='女卫暖手垫', Code='1' where Mac='187ed532b838' and LineAddress='1';
update KaiGuan Set Name='走廊反光', Code='2' where Mac='187ed532b838' and LineAddress='2';
update KaiGuan Set Name='吊楣反光', Code='3' where Mac='187ed532b838' and LineAddress='3';
update KaiGuan Set Name='走廊灯', Code='4' where Mac='187ed532b838' and LineAddress='4';
update KaiGuan Set Name='扶梯灯', Code='5' where Mac='187ed532b838' and LineAddress='5';
update KaiGuan Set Name='天井灯', Code='6' where Mac='187ed532b838' and LineAddress='6';
update KaiGuan Set Name='天井反光', Code='7' where Mac='187ed532b838' and LineAddress='7';
update KaiGuan Set Name='天井反光下', Code='8' where Mac='187ed532b838' and LineAddress='8';
update KaiGuan Set Name='天井反光下', Code='9' where Mac='187ed532b838' and LineAddress='9';
update KaiGuan Set Name='大圆灯箱', Code='10' where Mac='187ed532b838' and LineAddress='10';
update KaiGuan Set Name='大圆灯箱', Code='11' where Mac='187ed532b838' and LineAddress='11';
update KaiGuan Set Name='大圆灯箱', Code='12' where Mac='187ed532b838' and LineAddress='12';
update KaiGuan Set Name='天井反光', Code='13' where Mac='187ed532b838' and LineAddress='13';
update KaiGuan Set Name='大圆反光下', Code='14' where Mac='187ed532b838' and LineAddress='14';
update KaiGuan Set Name='大圆反光', Code='15' where Mac='187ed532b838' and LineAddress='15';
update KaiGuan Set Name='大圆反光', Code='16' where Mac='187ed532b838' and LineAddress='16';
update KaiGuan Set Name='大圆反光', Code='17' where Mac='187ed532b838' and LineAddress='17';
update KaiGuan Set Name='走廊反光', Code='18' where Mac='187ed532b838' and LineAddress='18';

第 2 排 (mac: 187ed5328454)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328454'
18

update KaiGuan Set Name='女卫干手器', Code='1' where Mac='187ed5328454' and LineAddress='1';
update KaiGuan Set Name='大圆灯', Code='2' where Mac='187ed5328454' and LineAddress='2';
update KaiGuan Set Name='大圆灯闪光灯', Code='3' where Mac='187ed5328454' and LineAddress='3';
update KaiGuan Set Name='大圆反光', Code='4' where Mac='187ed5328454' and LineAddress='4';
update KaiGuan Set Name='走廊反光', Code='5' where Mac='187ed5328454' and LineAddress='5';
update KaiGuan Set Name='走廊灯', Code='6' where Mac='187ed5328454' and LineAddress='6';
update KaiGuan Set Name='走廊反光掉楣反光', Code='7' where Mac='187ed5328454' and LineAddress='7';
update KaiGuan Set Name='大圆下反光', Code='8' where Mac='187ed5328454' and LineAddress='8';
update KaiGuan Set Name='大圆反光', Code='9' where Mac='187ed5328454' and LineAddress='9';
update KaiGuan Set Name='走廊反光', Code='10' where Mac='187ed5328454' and LineAddress='10';
update KaiGuan Set Name='走廊灯', Code='11' where Mac='187ed5328454' and LineAddress='11';
update KaiGuan Set Name='吊楣反光', Code='12' where Mac='187ed5328454' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed5328454' and LineAddress='13';
update KaiGuan Set Name='大圆反光', Code='14' where Mac='187ed5328454' and LineAddress='14';
update KaiGuan Set Name='大圆反光', Code='15' where Mac='187ed5328454' and LineAddress='15';
update KaiGuan Set Name='大圆反光', Code='16' where Mac='187ed5328454' and LineAddress='16';
update KaiGuan Set Name='大圆反光', Code='17' where Mac='187ed5328454' and LineAddress='17';
update KaiGuan Set Name='走廊反光', Code='18' where Mac='187ed5328454' and LineAddress='18';

第 3 排 (mac: 187ed532b234)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b234'
18

update KaiGuan Set Name='男卫生干手器', Code='1' where Mac='187ed532b234' and LineAddress='1';
update KaiGuan Set Name='天井灯箱', Code='2' where Mac='187ed532b234' and LineAddress='2';
update KaiGuan Set Name='大圆反光', Code='3' where Mac='187ed532b234' and LineAddress='3';
update KaiGuan Set Name='大圆反光', Code='4' where Mac='187ed532b234' and LineAddress='4';
update KaiGuan Set Name='走廊灯', Code='5' where Mac='187ed532b234' and LineAddress='5';
update KaiGuan Set Name='扶梯灯', Code='6' where Mac='187ed532b234' and LineAddress='6';
update KaiGuan Set Name='小圆反光', Code='7' where Mac='187ed532b234' and LineAddress='7';
update KaiGuan Set Name='小圆反光', Code='8' where Mac='187ed532b234' and LineAddress='8';
update KaiGuan Set Name='小圆反光', Code='9' where Mac='187ed532b234' and LineAddress='9';
update KaiGuan Set Name='走廊反光', Code='10' where Mac='187ed532b234' and LineAddress='10';
update KaiGuan Set Name='吊楣反光', Code='11' where Mac='187ed532b234' and LineAddress='11';
update KaiGuan Set Name='走廊灯', Code='12' where Mac='187ed532b234' and LineAddress='12';
update KaiGuan Set Name='走廊反光', Code='13' where Mac='187ed532b234' and LineAddress='13';
update KaiGuan Set Name='小圆反光小圆灯箱', Code='14' where Mac='187ed532b234' and LineAddress='14';
update KaiGuan Set Name='走廊反光', Code='15' where Mac='187ed532b234' and LineAddress='15';
update KaiGuan Set Name='小圆灯', Code='16' where Mac='187ed532b234' and LineAddress='16';
update KaiGuan Set Name='走廊反光', Code='17' where Mac='187ed532b234' and LineAddress='17';
update KaiGuan Set Name='大圆灯箱', Code='18' where Mac='187ed532b234' and LineAddress='18';

第 4 排 (mac: 187ed532c2b8)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532c2b8'
17

update KaiGuan Set Name='男卫暖手宝', Code='1' where Mac='187ed532c2b8' and LineAddress='1';
update KaiGuan Set Name='走廊反光', Code='2' where Mac='187ed532c2b8' and LineAddress='2';
update KaiGuan Set Name='走廊反光吊楣反光', Code='3' where Mac='187ed532c2b8' and LineAddress='3';
update KaiGuan Set Name='小圆反光', Code='4' where Mac='187ed532c2b8' and LineAddress='4';
update KaiGuan Set Name='小圆反光', Code='5' where Mac='187ed532c2b8' and LineAddress='5';
update KaiGuan Set Name='吊楣反光', Code='6' where Mac='187ed532c2b8' and LineAddress='6';
update KaiGuan Set Name='小圆反光', Code='7' where Mac='187ed532c2b8' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed532c2b8' and LineAddress='8';
update KaiGuan Set Name='走廊反光', Code='9' where Mac='187ed532c2b8' and LineAddress='9';
update KaiGuan Set Name='吊楣反光', Code='10' where Mac='187ed532c2b8' and LineAddress='10';
update KaiGuan Set Name='小圆反光', Code='11' where Mac='187ed532c2b8' and LineAddress='11';
update KaiGuan Set Name='小圆反光', Code='12' where Mac='187ed532c2b8' and LineAddress='12';
update KaiGuan Set Name='小圆灯', Code='13' where Mac='187ed532c2b8' and LineAddress='13';
update KaiGuan Set Name='走廊灯', Code='14' where Mac='187ed532c2b8' and LineAddress='14';
update KaiGuan Set Name='走廊灯', Code='15' where Mac='187ed532c2b8' and LineAddress='15';
update KaiGuan Set Name='走廊反光', Code='16' where Mac='187ed532c2b8' and LineAddress='16';
update KaiGuan Set Name='大圆灯箱', Code='17' where Mac='187ed532c2b8' and LineAddress='17';


第 5 排 (mac: 187ed5328fc0)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed5328fc0'
18

update KaiGuan Set Name='男卫暖手宝', Code='1' where Mac='187ed5328fc0' and LineAddress='1';
update KaiGuan Set Name='小圆反光', Code='2' where Mac='187ed5328fc0' and LineAddress='2';
update KaiGuan Set Name='小圆灯', Code='3' where Mac='187ed5328fc0' and LineAddress='3';
update KaiGuan Set Name='小圆反光', Code='4' where Mac='187ed5328fc0' and LineAddress='4';
update KaiGuan Set Name='小圆反光', Code='5' where Mac='187ed5328fc0' and LineAddress='5';
update KaiGuan Set Name='小圆反光', Code='6' where Mac='187ed5328fc0' and LineAddress='6';
update KaiGuan Set Name='吊楣反光', Code='7' where Mac='187ed5328fc0' and LineAddress='7';
update KaiGuan Set Name='女卫反光', Code='8' where Mac='187ed5328fc0' and LineAddress='8';
update KaiGuan Set Name='男卫灯', Code='9' where Mac='187ed5328fc0' and LineAddress='9';
update KaiGuan Set Name='女卫灯', Code='10' where Mac='187ed5328fc0' and LineAddress='10';
update KaiGuan Set Name='男卫反光', Code='11' where Mac='187ed5328fc0' and LineAddress='11';
update KaiGuan Set Name='小圆反光', Code='12' where Mac='187ed5328fc0' and LineAddress='12';
update KaiGuan Set Name='小圆反光', Code='13' where Mac='187ed5328fc0' and LineAddress='13';
update KaiGuan Set Name='走廊反光', Code='14' where Mac='187ed5328fc0' and LineAddress='14';
update KaiGuan Set Name='卫生间廊灯', Code='15' where Mac='187ed5328fc0' and LineAddress='15';
update KaiGuan Set Name='前空灯', Code='16' where Mac='187ed5328fc0' and LineAddress='16';
update KaiGuan Set Name='大圆灯箱', Code='17' where Mac='187ed5328fc0' and LineAddress='17';
update KaiGuan Set Name='卫生间感应', Code='18' where Mac='187ed5328fc0' and LineAddress='18';

第 6 排 (mac: 187ed532b5d8)
select Mac, LineAddress,Name, Code from KaiGuan where Mac='187ed532b5d8'
17

update KaiGuan Set Name='女卫暖手宝', Code='1' where Mac='187ed532b5d8' and LineAddress='1';
update KaiGuan Set Name='货梯灯', Code='2' where Mac='187ed532b5d8' and LineAddress='2';
update KaiGuan Set Name='走廊反光', Code='3' where Mac='187ed532b5d8' and LineAddress='3';
update KaiGuan Set Name='走廊灯', Code='4' where Mac='187ed532b5d8' and LineAddress='4';
update KaiGuan Set Name='西走廊反光', Code='5' where Mac='187ed532b5d8' and LineAddress='5';
update KaiGuan Set Name='西走廊反光', Code='6' where Mac='187ed532b5d8' and LineAddress='6';
update KaiGuan Set Name='西走廊灯', Code='7' where Mac='187ed532b5d8' and LineAddress='7';
update KaiGuan Set Name='走廊反光', Code='8' where Mac='187ed532b5d8' and LineAddress='8';
update KaiGuan Set Name='西走廊反光', Code='9' where Mac='187ed532b5d8' and LineAddress='9';
update KaiGuan Set Name='大圆反光', Code='10' where Mac='187ed532b5d8' and LineAddress='10';
update KaiGuan Set Name='观光电梯灯', Code='11' where Mac='187ed532b5d8' and LineAddress='11';
update KaiGuan Set Name='走廊反光', Code='12' where Mac='187ed532b5d8' and LineAddress='12';
update KaiGuan Set Name='柱子反光', Code='13' where Mac='187ed532b5d8' and LineAddress='13';
update KaiGuan Set Name='大圆反光', Code='14' where Mac='187ed532b5d8' and LineAddress='14';
update KaiGuan Set Name='大圆反光', Code='15' where Mac='187ed532b5d8' and LineAddress='15';
update KaiGuan Set Name='夜间灯', Code='16' where Mac='187ed532b5d8' and LineAddress='16';
update KaiGuan Set Name='夜间灯', Code='17' where Mac='187ed532b5d8' and LineAddress='17';