|
SQL 中自己创建函数,分割字符串(2) if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[getEPnum]') and xtype in (N'FN', N'IF', N'TF')) drop function [dbo].[getEPnum] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[getstrcount]') and xtype in (N'FN', N'IF', N'TF')) drop function [dbo].[getstrcount] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[getstrofindex]') and xtype in (N'FN', N'IF', N'TF')) drop function [dbo].[getstrofindex] GO SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO
|