insert into A表(字段1,字段2) select 字段1,字段2 From B表 [注:字段类型.字段数应相同] --批量进行修改ID值 declare @i int begin )) From (select IId=ROW_NUMBER()over(order by ID),* FROM ComputerEquipmentListVIEW) as d where ComputerEquipmentListVIEW.ID=d.ID and d.IId=@i end
#!/bin/bash confs=`ls /etc/nginx/conf.d/cms_vhosts/` cd /etc/nginx/conf.d/cms_vhosts for log in $confs;do name=`echo ${log} |awk -F '.' '{print $1}'` sed -i "/root/a\error_log /zz_data/nginx_log/${name}.error.log;" $log sed -i "/error_log/a