字段里面的数据如下:
金柏生物:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11530 target='_blank' title='单击进入'>威博士强劲胶囊</a>
河南竹林众:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11527 target='_blank' title='单击进入'>止咳橘红口服液</a>
北京益康:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11801 target='_blank' title='单击进入' class='style4'>破壁灵芝孢子粉</a>
江苏瑞家医药:<a href=http://www.blogcn.com/foot/faq.asp?action=loginhelp target='_blank' title='单击进入' class='style4'>甲钴胺胶囊</a>
西安高新医药:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11780 target='_blank' title='单击进入' class='style4'>喜来劲</a>
陕西东泰制药:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11761 target='_blank' title='单击进入' class='style4'>盆炎净胶囊</a>
福州卓辉:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11739 target='_blank' title='单击进入' class='style4'>辰氏草本去屑洗剂</a>
济南正邦:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11712 target='_blank' title='单击进入' class='style4'>眼依系列护眼露</a>
我想把里面所有的字符都更新了,只保存ID号 这样的语句怎么写~~~
金柏生物:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11530 target='_blank' title='单击进入'>威博士强劲胶囊</a>
河南竹林众:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11527 target='_blank' title='单击进入'>止咳橘红口服液</a>
北京益康:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11801 target='_blank' title='单击进入' class='style4'>破壁灵芝孢子粉</a>
江苏瑞家医药:<a href=http://www.blogcn.com/foot/faq.asp?action=loginhelp target='_blank' title='单击进入' class='style4'>甲钴胺胶囊</a>
西安高新医药:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11780 target='_blank' title='单击进入' class='style4'>喜来劲</a>
陕西东泰制药:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11761 target='_blank' title='单击进入' class='style4'>盆炎净胶囊</a>
福州卓辉:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11739 target='_blank' title='单击进入' class='style4'>辰氏草本去屑洗剂</a>
济南正邦:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11712 target='_blank' title='单击进入' class='style4'>眼依系列护眼露</a>
我想把里面所有的字符都更新了,只保存ID号 这样的语句怎么写~~~
汕头市中:<a href="zs/zs-detail.asp?id=6594" target="_blank">三磷酸胞苷二钠注</a>重庆医药工业:<a href=http://http://www.yy3721.com/zs/zs-detail.asp?id=6300 target='_blank' title='单击进入'>硝酸益康唑栓</a> 很对都是这样的~~~~你哪个规律不行2
所有我只有想这个办法。。把里面所有的字符更新掉~~~~
在SQL语句里面怎么用正则~~问高手~~
我知道,我的意思是说金柏生物:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11530 target='_blank' title='单击进入'>威博士强劲胶囊</a> 这个留 11530河南竹林众:<a href=http://www.yy3721.com/zs/zs-detail.asp?id=11527 target='_blank' title='单击进入'>止咳橘红口服液</a> 这个留 11527江苏瑞家医药:<a href=http://www.blogcn.com/foot/faq.asp?action=loginhelp target='_blank' title='单击进入' class='style4'>甲钴胺胶囊</a> 这个你打算留什么?而且数据库里其他的数据是否也是这样没规律的?
字符串函数提取亚
他说的这个字符函数提取是什么函数你告诉我这个就行其他的我都自己搞定~~~
特地进来BS下LZ
update 表
set 新id字段 = substring(老id字段,PATINDEX('%?id=%',老id字段) + 4,PATINDEX('%" %',老id字段)- PATINDEX('%?id=%',老id字段) - 4)
点名贴,没礼貌
特地进来BS下LZ
不太明白~~~
这个我知道。。我想知道的是。。有没有想asp一样判断他们的一个函数~~
你也真是的~~~我一般发的帖子,你都不来看,今天您老好不容易光临一次。。近来就........
==================应该没有..而且这件事显然是在数据库里做比较合适
create function 呵呵 然后把amandag(高歌) 的代码考进去
string str = @"id=(?<yID>\d+)";