asp 自动去除字符中含有html代码的几个
<%Function Remove_HTML(Str)Dim ilen1, ilen2Do While InStr(1, Str, "<", 1) >0ilen1 = InStr(1, Str, "<", 1)ilen2 = InStr(1, Str, ">", 1)Str = Left(Str, ilen1 -1) & Mid(Str, ilen2 + 1)LoopRemove_HTML = StrEnd Function Function RemoveHTMLTag(fString)Dim reSet re = New RegExpre.Ignore...
用SQL语句去掉重复的记录
海量数据(百万以上),其中有些全部字段都相同,有些部分字段相同,怎样高效去除重复? 如果要删除手机(mobilePhone),电话(officePhone),邮件(email)同时都相同的数据,以前一直使用这条语句进行去重: delete from 表 where id not in (select max(id) from 表 group by mobilePhone,officePhone,email ) or delete from 表 where id not in (select min(id) from 表 group by mobilePh...
asp如何取得新插入记录的ID(ACCESS
ACCESS库可以这样书写:set rs = server.createobject(“adodb.recordset”)sql = “select * from tablers.addnewrs(“title”) = “title”rs(“content”) = “content”rs.updatenewid = rs(“id”)rs.close SQLSERVER用上面的方法不行,必须在UPDATE后多加一句,rs.movelast.set rs = server.createobject(“adodb.recordset”)sql = “select * from tablers.ad...