问题描述
原始数据中的一条是这样的"!BJ1(17)-RHY1(17)BJ-RHYIIPSL-603GBY"Type:BidirectionalVC-12,Notpre-emptiveState:ActiveWorkerColours:NoColoursProtectionColours:NoColoursOperationalState:EnabledInService:YesTrailTraceState:UndefinedProtectionType:SNCP(Non-Revertive)ProtectionState:ActiveASTNOperationalState:DisabledCreatedon:Tuesday,August23,201110:01:50AMCreatedby:nmcmanRouteingProperties:PhysicalNodeDiversity:SatisfiedSRLGDiversity:SatisfiedPhysicalLinkDiversity:SatisfiedRouteing:Worker:BeiJiaoBian.BeiJB.1LTU1-132Mb/sPORT17<->Card1-31STM-16PORT11-1-7-2(Active)BeiJB/1-RenHY/11S11-1-7-2RenHeYing.RenHY.1LTU1-132Mb/sPORT17<->Card1-21STM-16PORT11-1-7-2(revertive)(Active)Protection:BeiJiaoBian.BeiJB.1LTU1-132Mb/sPORT17<->Card1-32STM-16PORT11-1-7-2(Active)BeiJB/1-WuQB/11S11-1-7-2WuQingBian.WuQB.1Card1-24STM-16PORT11-1-7-2<->Card1-23STM-16PORT11-1-7-2(Active)DaMengZh/2-WuQB/11S11-1-7-2DaMengZhuang.DaMengZh.2Card1-23STM-16PORT11-1-7-2<->Card1-24STM-16PORT11-1-7-2(Active)DaMenZh/2-ShiGZh/11S11-1-7-2ShiGeZhuang.ShiGZh.1Card1-23STM-16PORT11-1-7-2<->Card1-24STM-16PORT11-1-7-2(Active)QuDian/1-ShiGZh/11S11-1-7-2QuDian.QuDian.1Card1-21STM-16PORT11-1-7-2<->Card1-22STM-16PORT11-1-7-2(Active)QuDian/1-RenHY/11S11-1-7-2RenHeYing.RenHY.1LTU1-132Mb/sPORT17<->Card1-22STM-16PORT11-1-7-2(revertive)(Active)我想要把他变成数据库类型的怎么办????
解决方案
解决方案二:
你是要将这些数据存储到数据库中吗?如果是sqlserver数据库,在表中增加一个类型为text的列,这种类型的列可以存储内容很多的数据。
解决方案三:
使用nvarchar列就可以了。
解决方案四:
varchar(max)绝对够你一次性导入这么多数据的,如果你想对这条数据进行切割并保存,建议提取数据用正则来做,然后插入数据库
解决方案五:
nvarchar(max)
解决方案六:
"!BJ1(17)-RHY1(17)BJ-RHYIIPSL-603GBY"只要这一句还是要那一段??上面几楼已经给出了正解了!!
解决方案七:
nvarchar(max)