标签:style blog ar 使用 sp 数据 on 2014 log
1.查询重复的信息:
select * from Rex_Test where tName in (select tName from Rex_Test group by tName having count(1) >= 2)
Select top N * From table Order by newid()
select * from usertable where 1=1 and (name=@name or @name='') and (page=@page or @page='')
update table1 set field1= field1+'ef' where field1='abcd'
update tOrderCustomerList set ViewAuthority=replace(ViewAuthority,'0041101009|01012','')
//就是把字段ViewAuthority中的“<span style="font-family: Arial, Helvetica, sans-serif;">0041101009|01012</span><span style="font-family: Arial, Helvetica, sans-serif;">”替换为空</span>
查询格式为“XX######-####”这样的数据, 其中X为字母,#为数字 前面两位字母如果不是固定为aa select * from 表 where A LIKE '[a-zA-Z] [a-zA-Z] [0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]' 如果前两位固定aa select * from 表 where A LIKE ='aa[0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]'
标签:style blog ar 使用 sp 数据 on 2014 log
原文地址:http://blog.csdn.net/yangmingxing980/article/details/41440161