分享一个Sql技巧,把xml字符串转换成一个表格 DECLARE @IdHandel INT EXEC sp_xml_preparedocument @IdHandel OUTPUT, @Bar_Ip INSERT INTO T_Bar_Ip_Info(Bar_id,Ip_from,Ip_to,IpFromStr,IpToStr,IsHead,AuditStatus,AuditTime,CreateTime) ,,) ),IpToStr )) EXEC sp_xml_removedocument…