摘要: select datepart(dd,dateadd(dd,-1,dateadd(mm,1,cast(cast(year(getdate()) as varchar)+'-'+cast(month(getdate()) as varchar)+'-01' as datetime))))declare @str varchar(20),@strSql varchar(8000)set @str = 'a,bc,d,abce,ddz,78787' -- 此处的字符串可以随心所欲的更改if object_id('tempdb.dbo.#temp 阅读全文
posted @ 2012-06-04 16:02 浪潮 阅读(305) 评论(0) 推荐(0) 编辑
摘要: create table w ( word nvarchar(100) ) insert into w(word) select('去') union all select('第三方') union all select(',') union all select('士大夫') union all select('girls') union all select(' <:') declare @t nvarchar(1000) set @t='我们今天要去的地方要和第三方枯叶,顶替顶替 阅读全文
posted @ 2012-06-04 16:00 浪潮 阅读(510) 评论(0) 推荐(0) 编辑