摘要:
CREATE FUNCTION dbo.sf_DS_SplitNVarchar ( @strValues nvarchar(4000) ) RETURNS @tblStrList TABLE (id int identity(1,1),value nvarchar(4000)) AS BEGIN d 阅读全文
摘要:
declare @start datetime declare @end datetime set @start = '2018-01-25' set @end = '2018-02-03' select dateadd(dd,num,@start) FROM (SELECT ROW_NUMBER( 阅读全文
摘要:
--【提取中文】 IF OBJECT_ID('dbo.fun_getCN') IS NOT NULL DROP FUNCTION dbo.fun_getCN GO create function dbo.fun_getCN(@str varchar(4000)) returns varchar(40 阅读全文
摘要:
create function [dbo].[fun_getbh](@char nchar(2)) returns int as begin return( case when unicode(@char) between 19968 and 40869 then( select top 1 id 阅读全文
摘要:
/* 汉字转拼音首字母 */ create function fun_getPY(@str nvarchar(4000)) returns nvarchar(4000) as begin declare @word nchar(1),@PY nvarchar(4000) set @PY='' whi 阅读全文
摘要:
• 方法一:查询所有包含某文本的存储过程、视图、函数 SELECT * from sysobjects o, syscomments s where o.id = s.id AND text LIKE '%text%' • 方法二: select routine_name,routine_defin 阅读全文